Hello,
Hope everyone is doing good.
Lately We have upgraded our AWX environment from 7 to 15 version.
Upgrade was smooth and everything is working fine except , python script which we had to sync our inventory from Spacewalk to AWX.
It gives me some parser error .
I assume mostly it is because in AWX 15 , python3.6 is by default , and my python script was working with python 2.7 .
Wondering if anyone has come across this ?
It looked like formatting issue with python3.6.
Now it goes ahead but then i hit this error
[WARNING]: * Failed to parse /tmp/awx_8443_3881lxwm/tmpiuqwbmob with script
43
plugin: Invalid data from file, expected dictionary and got: None
44
[WARNING]: * Failed to parse /tmp/awx_8443_3881lxwm/tmpiuqwbmob with yaml
49
plugin: We were unable to read either as JSON nor YAML, these are the errors we
50
got from each: JSON: Expecting value: line 1 column 1 (char 0) Syntax Error
51
while loading YAML. mapping values are not allowed in this context The error
52
appears to be in ‘/tmp/awx_8443_3881lxwm/tmpiuqwbmob’: line 15, column 4, but
53
may be elsewhere in the file depending on the exact syntax problem. The
54
offending line appears to be: try: ^ here
55
I will continue investigating.