You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default code create! do 3 calls, it calls the retrieve!, delete and create methods. So, any resource that overwrite that methods without the argument "header", the default implementation of create! will fail. Below we can see all resources that have overwrote at least one of the retrieve!, delete or create methods and which will fail when call the create! method.
We can mark the checkbox if some one that resources is ok after some change.
storage_system
#retrieve!method
storage_pool
#retrieve!method
Note: The create method to storage_pool is unavailable, so we should call the add method. We have to decide if we will mark the create! method as unavailable or add the add! method working as default create! method.
server_hardware
#retrieve!method
user
#createmethod
logical_switch
#createmethod
logical_interconnect_group
#createmethod
logical_interconnect
#createmethod
#deletemethod
Note: maybe in this case, the good way is overwriting the #create! method
aalexmonteiro
changed the title
Scopes API300 C7000 are overriding "delete" method without receiving header parameter
Overridden methods without receiving header parameter
Oct 30, 2017
Scenario/Intent
I'm trying to delete a API300::C7000::Scope passing a header as a parameter, but I can't and the default code fails (Resource#create!).
Environment Details
Steps to Reproduce
Run API300::C7000::Scope#create!
Expected Result
The scope should be deleted and created successfully
Actual Result
It fails saying the delete won't receive any arguments (the header)
Root cause
API300::C7000::Scope is overriding the delete without parameters, so it is causing it to fail.
The text was updated successfully, but these errors were encountered: