datacenter / cobra

Cobra - Python bindings for the ACI REST API
Other
88 stars 41 forks source link

fromXMLStr does not allow status="deleted" #108

Closed paullesiak closed 2 years ago

paullesiak commented 9 years ago

If an input XML string has the status set to deleted on an Mo, cobra throws that away and replaces it with status="created,deleted". This is due to an invalid branch condition in xmlcodec.py where an attribute string is compared to not None, which will always be True.

mtimm commented 8 years ago

This could be related to: https://github.com/datacenter/cobra/issues/89