Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Missing user_data key in digitalocean_host causes error #28

Open
@lukebarton

Description

@lukebarton
ERROR: Inventory script (../terraform/support/terraform.py) had an execution error: Traceback (most recent call last):
  File "/opt/terraform/support/terraform.py", line 619, in <module>
    main()
  File "/opt/terraform/support/terraform.py", line 604, in main
    output = query_list(hosts)
  File "/opt/terraform/support/terraform.py", line 546, in query_list
    for name, attrs, hostgroups in hosts:
  File "/opt/terraform/support/terraform.py", line 67, in iterhosts
    yield parser(resource, module_name)
  File "/opt/terraform/support/terraform.py", line 83, in inner
    name, attrs, groups = func(*args, **kwargs)
  File "/opt/terraform/support/terraform.py", line 153, in digitalocean_host
    'metadata': json.loads(raw_attrs['user_data']),
KeyError: u'user_data'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions