From 0d9d9b166083fc300eef760cae5517947f3e4c71 Mon Sep 17 00:00:00 2001 From: Veselin Bochev Date: Wed, 1 Jun 2022 16:29:03 +0300 Subject: [PATCH] code optimizations --- bin/pre-terraform | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/bin/pre-terraform b/bin/pre-terraform index 17d8c12..71a5ac6 100755 --- a/bin/pre-terraform +++ b/bin/pre-terraform @@ -41,13 +41,15 @@ try: except: # print("A minimum of one argument is needed to proceed.", file=sys.stderr) print('usage: %s ' % sys.argv[0]) - print() - print('Important: This is used to generate YAML file for the terraform `create-terraform`') - print(' script and be able to generate artifcats. Only used for hosts which are') - print(' already in the PuppetDB.') - print() - print(' Fields consisting of `__` should be manually checked and corrected.') - print(' Always double check all data before proceeding further.') + print(''' +Important: +This is used to generate YAML file for the terraform `create-terraform` +script and be able to generate artifcats. Only used for hosts which are +already in the PuppetDB. + +Fields consisting of `__` should be manually checked and corrected. +Always double check all data before proceeding further. + ''') _exit(1) req = Request("%s?query=%s" % (url, quote_plus(data, encoding="ascii")), method='GET') -- 2.39.5