Skip to content

Getting the safety child of strategy fails after saving a safety #57

@pierce27

Description

@pierce27

If you run the below code in interpreter:

>>> safety = t1.get('strategies', 319492, child='safety', full="*")
>>> safety.include = []
>>> safety.save()
>>> safety = t1.get('strategies', 319492, child='safety', full="*")

the last get will output following traceback:

File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/terminalone/service.py", line 433, in get
    entities, ent_count = super(T1, self)._get(PATHS['mgmt'], _url, params=_params)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/terminalone/connection.py", line 81, in _get
    raise ClientError('Could not parse XML response: {!r}'.format(exc))
terminalone.errors.ClientError: "Could not parse XML response: ParseError('no element found: line 1, column 0',)"

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