Skip to content

Commit

Permalink
IH-621: Python tweaks suggested by pylint
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Brett <[email protected]>
  • Loading branch information
alexbrett committed Jul 5, 2024
1 parent 1b06e51 commit 331c564
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/poweron/IPMI.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#!/usr/bin/env python3

import os.path
import sys

import xcp.cmd as cmd

from xcp import cmd

class IPMI_POWERON_FAILED(Exception):
"""IPMI Poweron exception"""
Expand Down Expand Up @@ -35,7 +32,7 @@ def IPMI(power_on_ip, user, password):

def main():
if len(sys.argv) < 3:
exit(0)
sys.exit(1)
ip = sys.argv[1]
user = sys.argv[2]
password = sys.argv[3]
Expand Down

0 comments on commit 331c564

Please sign in to comment.