-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vSphere_guest Config mismatch for vm_disk: size_gb #7385
Comments
Suspect this is because the module isn't casting. |
The above patch should fix this issue. If you continue having problems related to this issue, please let us know. Thanks! |
Sorry, with current devel branch I still get the exact same error. The error is raised in config_check. To me it seems as if config_check still checks if the value is int as defined in main's proto_vm_disk. When i change the proto_vm_disk type for size_gb from int to basestring it works. But I'm not sure if this is the right solution. Though I don't understand why it seems to work for |
I've also merged in the above patch to address the config check issue. The check will now attempt to cast the value to the type specified and will only mark the value as missing if that fails as well. Please let us know if you are still seeing any problems related to this issue after testing this patch. Thanks! |
Issue Type:
Bug Report
Ansible Version:
1.6.1
devel branch
Environment:
Debian wheezy 7.5
Summary:
Some similar int casting bugs have already been fixed in pull/7190.
Steps To Reproduce:
Use a variable for Disk size:
Expected Results:
Create a guest with specified disk size.
Actual Results:
Play fails with error:
msg: Config mismatch for vm_disk on [('size_gb', <type 'int'>)]
The text was updated successfully, but these errors were encountered: