From: Veselin Bochev Date: Wed, 1 Jun 2022 13:29:03 +0000 (+0300) Subject: code optimizations X-Git-Tag: 1.6.1~1^2~16 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=0d9d9b166083fc300eef760cae5517947f3e4c71;p=pixelpark%2Fcreate-terraform.git code optimizations --- 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')