Skip to content

CP-49903: mv echo plugin from scripts/examples/python/echo.py to python3/plugins #5742

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions python3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ install:
$(IPROG) bin/xe-scsi-dev-map $(DESTDIR)$(OPTDIR)/bin
$(IPROG) plugins/disk-space $(DESTDIR)$(PLUGINDIR)
$(IPROG) plugins/install-supp-pack $(DESTDIR)$(PLUGINDIR)
$(IPROG) plugins/echo.py $(DESTDIR)$(PLUGINDIR)/echo

# poweron
$(IPROG) poweron/wlan.py $(DESTDIR)$(PLUGINDIR)/wlan.py
Expand Down
4 changes: 2 additions & 2 deletions scripts/examples/python/echo.py → python3/plugins/echo.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import XenAPIPlugin


def main(session, args):
# The 1st argument is the session. This plugin does not use it, hence use _:
def main(_, args):
if "sleep" in args:
secs = int(args["sleep"])
time.sleep(secs)
Expand Down
1 change: 0 additions & 1 deletion scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ endif
sed -i 's/#!\/usr\/bin\/python/#!\/usr\/bin\/python3/' $(DESTDIR)$(SITE3_DIR)/XenAPIPlugin.py
$(IDATA) examples/python/XenAPI/XenAPI.py $(DESTDIR)$(SITE3_DIR)/
$(IDATA) examples/python/inventory.py $(DESTDIR)$(SITE3_DIR)/
$(IPROG) examples/python/echo.py $(DESTDIR)$(PLUGINDIR)/echo
$(IPROG) examples/python/shell.py $(DESTDIR)$(LIBEXECDIR)/shell.py
# YUM plugins
$(IPROG) yum-plugins/accesstoken.py $(DESTDIR)$(YUMPLUGINDIR)
Expand Down
Loading