You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
I am trying to upload a customization script using vcd and I am getting the error below. I have tried multiple ways of writing the command. Putting the vapp and vm before and after the options provides the same result.
vcd vm update-gc-section --enable --customization-script "touch" vapp1 test1
Usage: vcd vm update-gc-section [OPTIONS]
Try "vcd vm update-gc-section -h" for help.
Error: Status code: 400/BAD_REQUEST, [ 11d7df7e-de3d-440c-8ec2-00ccd64b95e4 ] HTTP 400 Bad Request
cvc-complex-type.2.4.a: Invalid content was found starting with element 'CustomizationScript'. One of '{"http://www.vmware.com/vcloud/v1.5":Link, WC[##other:"http://www.vmware.com/vcloud/v1.5"]}' is expected. (request id: 11d7df7e-de3d-440c-8ec2-00ccd64b95e4)
The text was updated successfully, but these errors were encountered:
The test I made earlier using the filename was invalid. The VM wasn't brand new and it just set the script to the text of the filename.
When running this against a brand new VM I get the following error:
$./vcd vm update-gc-section vapp1 test1 --customization-script "$(cat gc-script.sh)"
Usage: vcd vm update-gc-section [OPTIONS]
Try "vcd vm update-gc-section -h" for help.
Error: Status code: 400/BAD_REQUEST, [ 8f2e6e3b-08c9-4890-bbef-d400a589f84c ] HTTP 400 Bad Request
cvc-complex-type.2.4.a: Invalid content was found starting with element 'CustomizationScript'. One of '{"http://www.vmware.com/vcloud/v1.5":Link, WC[##other:"http://www.vmware.com/vcloud/v1.5"]}' is expected. (request id: 8f2e6e3b-08c9-4890-bbef-d400a589f84c)
If I go into the UI and type a word into the script dialog, hit save, and then run the same thing again it succeeds.
I am trying to upload a customization script using vcd and I am getting the error below. I have tried multiple ways of writing the command. Putting the vapp and vm before and after the options provides the same result.
vcd vm update-gc-section --enable --customization-script "touch" vapp1 test1
Usage: vcd vm update-gc-section [OPTIONS]
Try "vcd vm update-gc-section -h" for help.
Error: Status code: 400/BAD_REQUEST, [ 11d7df7e-de3d-440c-8ec2-00ccd64b95e4 ] HTTP 400 Bad Request
The text was updated successfully, but these errors were encountered: