Skip to content

Commit

Permalink
CP-49902: Moved DRAC.py from scripts/poweron to python3/poweron
Browse files Browse the repository at this point in the history
- Modified Makefile in python3 directory to include DRAC.py
- Removed DRAC.PY from scripts/poweron
- Fixed pytlint issue by using sys.exit()

Signed-off-by: Ashwinh <ashwin.h@cloud.com>
  • Loading branch information
ashwin9390 committed Jun 18, 2024
1 parent 97d3549 commit d32ea71
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions python3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ install:
# poweron
$(IPROG) poweron/wlan.py $(DESTDIR)$(PLUGINDIR)/wlan.py
$(IPROG) poweron/wlan.py $(DESTDIR)$(PLUGINDIR)/wake-on-lan
$(IPROG) poweron/DRAC.py $(DESTDIR)$(PLUGINDIR)/DRAC.py
2 changes: 1 addition & 1 deletion scripts/poweron/DRAC.py → python3/poweron/DRAC.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def DRAC(power_on_ip, user, password):

def main():
if len(sys.argv) < 3:
exit(0)
sys.exit(0)
ip = sys.argv[1]
user = sys.argv[2]
password = sys.argv[3]
Expand Down
1 change: 0 additions & 1 deletion scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ endif
$(IPROG) examples/python/echo.py $(DESTDIR)$(PLUGINDIR)/echo
$(IPROG) examples/python/shell.py $(DESTDIR)$(LIBEXECDIR)/shell.py
# poweron
$(IPROG) poweron/DRAC.py $(DESTDIR)$(PLUGINDIR)/DRAC.py
$(IPROG) poweron/power-on.py $(DESTDIR)$(PLUGINDIR)/power-on-host
# YUM plugins
$(IPROG) yum-plugins/accesstoken.py $(DESTDIR)$(YUMPLUGINDIR)
Expand Down

0 comments on commit d32ea71

Please sign in to comment.