Skip to content

Commit

Permalink
CP-49903: mv echo plugin from scripts/examples/python/echo.py to pyth…
Browse files Browse the repository at this point in the history
…on3/plugins (#5742)

Signed-off-by: Ashwinh <ashwin.h@cloud.com>
Co-authored-by: Bernhard Kaindl <bernhardkaindl7@gmail.com>
  • Loading branch information
ashwin9390 and bernhardkaindl authored Jun 26, 2024
1 parent c5c2bfe commit f80b126
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit f80b126

Please sign in to comment.