mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
The AdminPassword XML element isn't present unless AdminPasswordEnabled, maybe because it's an empty tag? If not set the VCloud API gives a 400.
This commit is contained in:
parent
912cd6fae1
commit
1e3d5f4406
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ module Fog
|
|||
@response[:admin_password] = value
|
||||
when 'AdminPasswordEnabled'
|
||||
@response[:admin_password_enabled] = (value == "true")
|
||||
@response[:admin_password] = '' unless @response[:admin_password_enabled]
|
||||
when 'AdminPasswordAuto'
|
||||
@response[:admin_password_auto] = (value == "true")
|
||||
when 'ResetPasswordRequired'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue