GoogleCloudPlatform / deploymentmanager-samples

Deployment Manager samples and templates.
Apache License 2.0
937 stars 718 forks source link

'gcloud deployment-manager deployments ....' doesn't handling globing when run on Windows #556

Open luanthom opened 4 years ago

luanthom commented 4 years ago

The recently introduced globbing feature for Deployment Manager so that schema templates do not need to explicitly list all of the template and helper files does not appear to work correctly when the gcloud command to submit the Deployment Manager deployment is run from a Windows computer.

glob_imports is set to 'true'.

When submitted, the files are copied to the Deployment Manager workspace, however the file path separator, as specified in the schema file, is changed from '/' to '\' which causes Deployment Manager to fail to process the templates correctly and results in an error.

The same command works correctly if submitted from a linux session on the same computer using the same set of files.

See screenshot:

deployment-manager-globbing-failure