couchbase-partners / google-deployment-manager-couchbase

Google Deployment Manager (DM) templates for Couchbase Enterprise
Apache License 2.0
11 stars 9 forks source link

Replace Cut #14

Closed benofben closed 7 years ago

benofben commented 7 years ago

From Tomasz ---

I've seen that in configuration scripts you use such constructions: DEPLOYMENT=hostname | cut -d "-" -f 1 CLUSTER=hostname | cut -d "-" -f 2

You should be warned that someone can use my-deployment as an installation name and cut will return wrong part of the string. Please consider creating an attribute with deployment name.

benofben commented 7 years ago

Done. That was easy.