diff options
author | Kyle Kaminski <kyle.kaminski@trustwave.com> | 2021-08-18 14:11:12 -0500 |
---|---|---|
committer | Kyle Kaminski <kyle.kaminski@trustwave.com> | 2021-08-18 14:34:14 -0500 |
commit | a6ec4b92d10e19992f5ba603c25587141782b746 (patch) | |
tree | a636f5e04613cba697a4a602e78c4e31c74e55a7 /scratch.py | |
parent | 6505c9503c4925a2022a027a2414541a6cc20810 (diff) | |
download | PythonPractice-a6ec4b92d10e19992f5ba603c25587141782b746.tar.gz PythonPractice-a6ec4b92d10e19992f5ba603c25587141782b746.tar.bz2 PythonPractice-a6ec4b92d10e19992f5ba603c25587141782b746.zip |
add python katello example of pulling hosts inventory via its API
Diffstat (limited to 'scratch.py')
-rw-r--r-- | scratch.py | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,12 @@ import sys -print("hello, {0}".format('world!'))
\ No newline at end of file +class Baz: + def hello(self): + print(foo) + +if True: + foo = 'bar' + +print("hello, {0}".format('world!')) +c = Baz() +c.hello()
\ No newline at end of file |