As per the documentation example section 4.3.2. the
main()needs to be indented otherwise the code will fail to run.
if __name__ == "__main__": main()
Red Hat Satellite 6.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.