We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95f2c1d commit e5ae768Copy full SHA for e5ae768
internal/pkg/scaffold/ansible/k8s_status.go
@@ -367,7 +367,7 @@ class KubernetesAnsibleStatusModule(KubernetesAnsibleModule):
367
368
for condition in new_conditions:
369
idx = self.get_condition_idx(merged, condition['type'])
370
- if idx:
+ if idx is not None:
371
merged[idx] = condition
372
else:
373
merged.append(condition)
@@ -378,6 +378,7 @@ class KubernetesAnsibleStatusModule(KubernetesAnsibleModule):
378
for i, condition in enumerate(conditions):
379
if condition.get('type') == name:
380
return i
381
+ return None
382
383
def object_contains(self, obj, subset):
384
def dict_is_subset(obj, subset):
0 commit comments