From 823bd9118e738bb211b87fdcff06c07c205375c2 Mon Sep 17 00:00:00 2001 From: jayonlau <85604893+jayonlau@users.noreply.github.com> Date: Thu, 8 Jul 2021 16:32:53 +0800 Subject: [PATCH] Clean up extra spaces of kubespray-aws-inventory.py (#7774) Clean up extra spaces, although these errors are not important, they affect the code specification. --- contrib/aws_inventory/kubespray-aws-inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/aws_inventory/kubespray-aws-inventory.py b/contrib/aws_inventory/kubespray-aws-inventory.py index 3ad241c7e..44a4a09a9 100755 --- a/contrib/aws_inventory/kubespray-aws-inventory.py +++ b/contrib/aws_inventory/kubespray-aws-inventory.py @@ -69,7 +69,7 @@ class SearchEC2Tags(object): hosts[group].append(dns_name) hosts['_meta']['hostvars'][dns_name] = ansible_host - + hosts['k8s_cluster'] = {'children':['kube_control_plane', 'kube_node']} print(json.dumps(hosts, sort_keys=True, indent=2))