diff options
author | Jacek Suchenia <jacek.suchenia@ocado.com> | 2016-11-18 11:46:24 +0100 |
---|---|---|
committer | Jacek Suchenia <jacek.suchenia@ocado.com> | 2016-11-18 11:46:24 +0100 |
commit | 1908bdd84f8f001870dcd6451460fc529e31f16e (patch) | |
tree | 3802efe82eb39fc7ed519af2d787e6ba8833dfc7 /playbooks | |
parent | 526a4b786c124aed2c218f434cf035133d6eb1bf (diff) | |
download | openshift-1908bdd84f8f001870dcd6451460fc529e31f16e.tar.gz openshift-1908bdd84f8f001870dcd6451460fc529e31f16e.tar.bz2 openshift-1908bdd84f8f001870dcd6451460fc529e31f16e.tar.xz openshift-1908bdd84f8f001870dcd6451460fc529e31f16e.zip |
Escape LOGNAME variable according to GCE rules
Diffstat (limited to 'playbooks')
-rw-r--r-- | playbooks/gce/openshift-cluster/tasks/launch_instances.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/playbooks/gce/openshift-cluster/tasks/launch_instances.yml b/playbooks/gce/openshift-cluster/tasks/launch_instances.yml index b7604580c..87b30aee4 100644 --- a/playbooks/gce/openshift-cluster/tasks/launch_instances.yml +++ b/playbooks/gce/openshift-cluster/tasks/launch_instances.yml @@ -13,7 +13,7 @@ # unsupported in 1.9.+ #service_account_permissions: "datastore,logging-write" tags: - - created-by-{{ lookup('env', 'LOGNAME') |default(cluster, true) }} + - created-by-{{ lookup('env', 'LOGNAME') | regex_replace('[^a-z0-9]+', '') | default(cluster, true) }} - environment-{{ cluster_env }} - clusterid-{{ cluster_id }} - host-type-{{ type }} |