Skip to content

fqdn_attributes = json_response['results'][0]['attributes'][0] -> KeyError: 'attributes' #89

@VladoPortos

Description

@VladoPortos

Describe the bug

Script fails during export on:

.
.
.
Beginning NSX Layer 7 FQDN profile export
Traceback (most recent call last):
  File "/home/vladoportos/sddc-import-export-for-vmware-cloud-on-aws/sddc_import_export.py", line 1006, in <module>
    main(sys.argv[1:])
  File "/home/vladoportos/sddc-import-export-for-vmware-cloud-on-aws/sddc_import_export.py", line 690, in main
    retval = ioObj.export_fqdn_attribute()
  File "/home/vladoportos/sddc-import-export-for-vmware-cloud-on-aws/VMCImportExport.py", line 1027, in export_fqdn_attribute
    fqdn_attributes = json_response['results'][0]['attributes'][0]
KeyError: 'attributes'

Reproduction steps

  1. normal setup for export, with default settings.
  2. no vcenter.ini setup
  3. no aws.ini setup
    ...

Expected behavior

Finish the export

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions