Skip to content

make_vcsp_2018.py UnboundLocalError: local variable #103

Description

@DevOpsDCC

Hello,

I am running in to an issue when executing against a local mount point, any idea why I might be getting this error?

python3 make_vcsp_2018.py -n vsphere-content-library -p /mnt/vsphere-content-library/contentlib/
Traceback (most recent call last):
File "make_vcsp_2018.py", line 578, in
main()
File "make_vcsp_2018.py", line 573, in main
make_vcsp(lib_name, lib_path, md5_enabled)
File "make_vcsp_2018.py", line 298, in make_vcsp
item_json = _dir2item(p, item_path, md5_enabled, "urn:uuid:%s" % lib_id)
File "make_vcsp_2018.py", line 163, in _dir2item
return _make_item(name, vcsp_type, name, files_items, identifier = uuid.uuid4(), library_id=lib_id, is_vapp_template=is_vapp)
UnboundLocalError: local variable 'is_vapp' referenced before assignment

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions