1
0
Fork 0
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:
Daniel Aragao 2014-06-06 09:31:19 +10:00
parent 912cd6fae1
commit 1e3d5f4406

View file

@ -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'