Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list_sync_policies fails with summary=True #21

Open
sjorge opened this issue Jan 16, 2020 · 0 comments
Open

list_sync_policies fails with summary=True #21

sjorge opened this issue Jan 16, 2020 · 0 comments
Labels
Bug_SDK Bugs related to SDK and surrounding scripts

Comments

@sjorge
Copy link

sjorge commented Jan 16, 2020

Traceback (most recent call last):
  File "/Users/jorschra/Documents/repos/ism/bin/ism.py", line 23, in <module>
    ism.run()
  File "/Users/jorschra/Documents/repos/ism/lib/ugent/isi/cli.py", line 106, in run
    ret_state, ret_failed, ret_stats = mgr.apply()
  File "/Users/jorschra/Documents/repos/ism/lib/ugent/isi/manager/export.py", line 100, in apply
    if not self.apply_sync(share_name, location=share_loc):
  File "/Users/jorschra/Documents/repos/ism/lib/ugent/isi/manager/sync.py", line 79, in apply_sync
    synciq_policy_id, synciq_policy_target = self.has_sync(name, True, location=location)
  File "/Users/jorschra/Documents/repos/ism/lib/ugent/isi/manager/sync.py", line 39, in has_sync
    ret = api.list_sync_policies(summary=True)
  File "/Users/jorschra/Documents/repos/ism/venv/lib/python2.7/site-packages/isi_sdk_8_2_1/api/sync_api.py", line 4510, in list_sync_policies
    (data) = self.list_sync_policies_with_http_info(**kwargs)  # noqa: E501
  File "/Users/jorschra/Documents/repos/ism/venv/lib/python2.7/site-packages/isi_sdk_8_2_1/api/sync_api.py", line 4624, in list_sync_policies_with_http_info
    collection_formats=collection_formats)
  File "/Users/jorschra/Documents/repos/ism/venv/lib/python2.7/site-packages/isi_sdk_8_2_1/api_client.py", line 346, in call_api
    _preload_content, _request_timeout)
  File "/Users/jorschra/Documents/repos/ism/venv/lib/python2.7/site-packages/isi_sdk_8_2_1/api_client.py", line 185, in __call_api
    return_data = self.deserialize(response_data, response_type)
  File "/Users/jorschra/Documents/repos/ism/venv/lib/python2.7/site-packages/isi_sdk_8_2_1/api_client.py", line 257, in deserialize
    return self.__deserialize(data, response_type)
  File "/Users/jorschra/Documents/repos/ism/venv/lib/python2.7/site-packages/isi_sdk_8_2_1/api_client.py", line 296, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/Users/jorschra/Documents/repos/ism/venv/lib/python2.7/site-packages/isi_sdk_8_2_1/api_client.py", line 671, in __deserialize_model
    kwargs[attr] = self.__deserialize(value, attr_type)
  File "/Users/jorschra/Documents/repos/ism/venv/lib/python2.7/site-packages/isi_sdk_8_2_1/api_client.py", line 274, in __deserialize
    for sub_data in data]
  File "/Users/jorschra/Documents/repos/ism/venv/lib/python2.7/site-packages/isi_sdk_8_2_1/api_client.py", line 296, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/Users/jorschra/Documents/repos/ism/venv/lib/python2.7/site-packages/isi_sdk_8_2_1/api_client.py", line 673, in __deserialize_model
    instance = klass(**kwargs)
  File "/Users/jorschra/Documents/repos/ism/venv/lib/python2.7/site-packages/isi_sdk_8_2_1/models/sync_policy_extended_extended.py", line 257, in __init__
    self.database_mirrored = database_mirrored
  File "/Users/jorschra/Documents/repos/ism/venv/lib/python2.7/site-packages/isi_sdk_8_2_1/models/sync_policy_extended_extended.py", line 561, in database_mirrored
    raise ValueError("Invalid value for `database_mirrored`, must not be `None`")  # noqa: E501
ValueError: Invalid value for `database_mirrored`, must not be `None`

When doing a list_sync_policies with summary setto True we hit an error when i tries to create the return object due to missing values. Presumably because with summary=True they are not returned.

@vboddui vboddui added the Bug_SDK Bugs related to SDK and surrounding scripts label Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug_SDK Bugs related to SDK and surrounding scripts
Projects
None yet
Development

No branches or pull requests

2 participants