Skip to content

Chapter 7 Python dynamic inventory example needs two fixes for Python 3 #280

@geerlingguy

Description

@geerlingguy

This line is particularly incompatible with Python 3:

print json.dumps(self.inventory);

Not only is there a semicolon (egads!!!), it needs to use the new Python 3-style print statement:

print(json.dumps(self.inventory))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions