Closed ghost closed 1 year ago
When I implemented firewalls, I forgot to return the actions from the API to the caller.
The API returns a JSON
{ "actions": [...], "firewall": {...} }
but firewall = client.firewalls.create(...) only returns the firewall.
firewall = client.firewalls.create(...)
The behavior of other create methods with actions is:
create
action, foo = client.foos.create() # e.g. floating IP action, foo, next_actions = client.foos.create() # e.g. servers and volumes
The natural behavior of firewalls thus should be:
actions, fw = client.firewalls.create()
When I implemented firewalls, I forgot to return the actions from the API to the caller.
The API returns a JSON
but
firewall = client.firewalls.create(...)
only returns the firewall.The behavior of other
create
methods with actions is:The natural behavior of firewalls thus should be: