Я пытаюсь получить некоторые факты с моего сервера бригадира, но я получаю invalid syntax (<string>, line 1)
try:
f = Foreman('https://localhost:4443',
(username, password),
api_version=2,
timeout=300)
print("f ams1 is done")
except Exception as e:
print(e)
exit(1)
это трассировку
Exception = {type} <class 'Exceptian'>
Unable to display children:Error resolving variables Traceback (most recent call last):
File "/Users/229/get_facts.py", line 30, in <module>
timeout=300)
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/foreman/client.py", line 588, in _init_
self.generate_api_defs(use_cache, strict_cache)
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/foreman/client.py", line 795, in __generate_api_defs
res_det,
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/foreman/client.py", line 379, in parse_resource_definition
new_dict[api.name] = api.genreate_func()
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/foreman/client.py", line 267, in generate_func
six.exec_(code)
File "<string>", line 1
def import(self, provisioning_template, options=None):
^
SyntaxError: invalid syntax
Может ли кто-нибудь помочь мне исправить эту ошибку