except:
# print("A minimum of one argument is needed to proceed.", file=sys.stderr)
print('usage: %s <hostname>' % 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')