Document has slight Indentation error for requesting information from API using python in Red Hat Satellite 6.

Solution Verified - Updated -

Issue

  • 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()
    

Environment

Red Hat Satellite 6.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content