Make sure creds are set before `racadm update`

This commit is contained in:
Aditya Kulkarni 2015-11-16 13:01:58 -05:00
parent 7c29662136
commit 54efb93f64

View File

@ -1298,6 +1298,12 @@ def _update_firmware(cmd,
host=None,
admin_username=None,
admin_password=None):
if not admin_username:
admin_username = __pillar__['proxy']['admin_username']
if not admin_username:
admin_password = __pillar__['proxy']['admin_password']
ret = __execute_ret(cmd,
host=host,
admin_username=admin_username,