From 584f6dc458a8800eed79bbc124c86db7f0b3e8f5 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 17 Aug 2020 13:40:00 -0400 Subject: [PATCH] Handle no-argument invocation apiclient is used to process confluent.info --- confluent_osdeploy/common/opt/confluent/bin/apiclient | 3 +++ 1 file changed, 3 insertions(+) diff --git a/confluent_osdeploy/common/opt/confluent/bin/apiclient b/confluent_osdeploy/common/opt/confluent/bin/apiclient index b6cc3f6c..0ebdc091 100644 --- a/confluent_osdeploy/common/opt/confluent/bin/apiclient +++ b/confluent_osdeploy/common/opt/confluent/bin/apiclient @@ -90,6 +90,9 @@ if __name__ == '__main__': json = False if '-j' in sys.argv: json = True + if len(sys.argv) == 1: + HTTPSClient() + sys.exit(0) if sys.argv[-2] == '-o': with open(sys.argv[3], 'wb') as outf: reader = HTTPSClient(json=json).grab_url(