-
Notifications
You must be signed in to change notification settings - Fork 121
ValueError: No JSON object could be decoded #69
Comments
piwi@jumphost:~/Documents/kubebify/terraform/dev/.terraform$ cat terraform.tfstate |
piwi@jumphost:~/Documents/kubebify/terraform/dev/.terraform$ cat terraform.tfstate |
when the dynamic inventory script runs, i get the following error:
piwi@jumphost:~/Documents/kubebify$ ansible all -i inventory/dev --list-hosts
ERROR! Attempted to execute "/home/piwi/Documents/kubebify/inventory/dev/terraform_inventory.sh" as inventory script: Inventory script (/home/piwi/Documents/kubebify/inventory/dev/terraform_inventory.sh) had an execution error: Traceback (most recent call last):
File "/home/piwi/.local/bin/ati", line 11, in
load_entry_point('ati==0.4.4.dev0', 'console_scripts', 'ati')()
File "/home/piwi/.local/venvs/ati/local/lib/python2.7/site-packages/ati/cli.py", line 81, in cli
output = query_list(hosts)
File "/home/piwi/.local/venvs/ati/local/lib/python2.7/site-packages/ati/terraform.py", line 940, in query_list
for name, attrs, hostgroups in hosts:
File "/home/piwi/.local/venvs/ati/local/lib/python2.7/site-packages/ati/terraform.py", line 106, in iterhosts
for module_name, key, resource in resources:
File "/home/piwi/.local/venvs/ati/local/lib/python2.7/site-packages/ati/terraform.py", line 54, in iterresources
for source in sources:
File "/home/piwi/.local/venvs/ati/local/lib/python2.7/site-packages/ati/terraform.py", line 48, in iter_states
yield json.loads(output[start_index:])
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
The text was updated successfully, but these errors were encountered: