From a6ec4b92d10e19992f5ba603c25587141782b746 Mon Sep 17 00:00:00 2001 From: Kyle Kaminski Date: Wed, 18 Aug 2021 14:11:12 -0500 Subject: add python katello example of pulling hosts inventory via its API --- scratch.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'scratch.py') diff --git a/scratch.py b/scratch.py index cb03373..296cb36 100644 --- a/scratch.py +++ b/scratch.py @@ -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 -- cgit v1.2.3