Merge "Make per_node.yaml py3 safe" into stable/train
This commit is contained in:
commit
dadab542aa
|
@ -49,7 +49,7 @@ resources:
|
|||
import sys
|
||||
input = sys.stdin.readline() or '{}'
|
||||
cnt = json.loads(input)
|
||||
print json.dumps(cnt.get('${node_id}', {}))
|
||||
print(json.dumps(cnt.get('${node_id}', {})))
|
||||
" > /etc/puppet/hieradata/${node_id}.json
|
||||
# handle upper case node id LP#1816652
|
||||
echo $node_lookup | $(get_python) -c "
|
||||
|
@ -57,7 +57,7 @@ resources:
|
|||
import sys
|
||||
input = sys.stdin.readline() or '{}'
|
||||
cnt = json.loads(input)
|
||||
print json.dumps(cnt.get('${node_id_upper}', {}))
|
||||
print(json.dumps(cnt.get('${node_id_upper}', {})))
|
||||
" > /etc/puppet/hieradata/${node_id_upper}.json
|
||||
|
||||
NodeSpecificDeployment:
|
||||
|
|
Loading…
Reference in New Issue