Fix k8s features for pyhton3 support
Operator + cannot be used for dict_items in Python3. Change to use update method. Change-Id: I43a8a46af3c069db2022e83854e20f0c3532f86d Signed-off-by: Toshiaki Takahashi <ts-takahashi@nec.com>
This commit is contained in:
parent
55319282f3
commit
bc353d8059
|
@ -214,9 +214,8 @@ class Transformer(object):
|
||||||
if tosca_kube_obj.labels:
|
if tosca_kube_obj.labels:
|
||||||
if 'selector' in update_label:
|
if 'selector' in update_label:
|
||||||
del update_label['selector']
|
del update_label['selector']
|
||||||
labels = dict(tosca_kube_obj.labels.items() + update_label.items())
|
update_label.update(tosca_kube_obj.labels)
|
||||||
else:
|
labels = update_label
|
||||||
labels = update_label
|
|
||||||
|
|
||||||
# Create and configure a spec section
|
# Create and configure a spec section
|
||||||
pod_template = client.V1PodTemplateSpec(
|
pod_template = client.V1PodTemplateSpec(
|
||||||
|
|
Loading…
Reference in New Issue