Skip to content

Commit

Permalink
ipmitool: add message in case of missing arguments
Browse files Browse the repository at this point in the history
Signed-off-by: Heiko Thiery <heiko.thiery@kontron.com>
  • Loading branch information
hthiery committed Oct 18, 2018
1 parent 8e19ca8 commit 006a7d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyipmi/ipmitool.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ def cmd_hpm_check_file(ipmi, args):

def cmd_hpm_install(ipmi, args):
if len(args) < 2:
print('missing argument')
return
ipmi.install_component_from_file(args[0], int(args[1]))

Expand Down

0 comments on commit 006a7d9

Please sign in to comment.