CLI: give user a hint to power on the node when setting IPMI creds

Follow-up to bug #1410180
Change-Id: I193b297588362114fb26f77f099feeadedf09330
This commit is contained in:
Dmitry Tantsur 2015-03-06 14:42:28 +01:00
parent 489979757d
commit 98f781d90e
1 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,8 @@
"""OpenStackClient plugin for ironic-discoverd."""
from __future__ import print_function
import logging
from cliff import command
@ -59,6 +61,9 @@ class StartCommand(command.Command):
auth_token=auth_token,
new_ipmi_username=parsed_args.new_ipmi_username,
new_ipmi_password=parsed_args.new_ipmi_password)
if parsed_args.new_ipmi_password:
print('Setting IPMI credentials requested, please power on '
'the machine manually')
class StatusCommand(show.ShowOne):