{"issue":{"title":"Deleting serviceGroups","user":{"login":"anandjeyahar","id":157675,"url":"https://api.github.com/users/anandjeyahar","avatar_url":"https://secure.gravatar.com/avatar/faa7a15b0c213f2e26c8f17df4f67821?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"faa7a15b0c213f2e26c8f17df4f67821"},"created_at":"2011-12-28T12:50:20Z","milestone":null,"labels":[],"state":"open","updated_at":"2011-12-28T13:49:40Z","id":2671007,"closed_at":null,"html_url":"https://github.com/favoretti/nsnitro/issues/5","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"I wrote this piece of code to delete an existing serviceGroup:\r\n\r\n<code>\r\ndef delete_resource(self):\r\n        try:\r\n\r\n            nsb = NSBaseResource()\r\n            nsb.resourcetype = 'serviceGroup'\r\n            nsb.set_action('delete')\r\n            nsb.set_options({'name':'Test-SG-192.168.8.140'})\r\n            nsb.delete_resource(self.nitro)\r\n            print \"resource deleted\"\r\n            print nsb.get_name() + \":\" + nsb.get_state()\r\n\r\n        except nsnitro.nsutil.NSNitroError,e:\r\n            print e.message\r\n</code>\r\n\r\nit throws me an error saying\r\n\r\n\"Invalid argument [name]\r\n\"\r\n\r\ni noticed that NSBaseResource.delete_resource calls delete_get_args and appends the options. The NS 9.3 documentation doesn't mention args at all... is it there for 9.2 compatibility?? it fails on NS 9.3 with error Invalid argument..\r\n\r\ni guess it's because serviceGroup does not classify as BaseResource and needs to be treated differently??","number":5,"url":"https://api.github.com/repos/favoretti/nsnitro/issues/5","comments":2,"assignee":null},"comment":{"user":{"login":"anandjeyahar","id":157675,"url":"https://api.github.com/users/anandjeyahar","avatar_url":"https://secure.gravatar.com/avatar/faa7a15b0c213f2e26c8f17df4f67821?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"faa7a15b0c213f2e26c8f17df4f67821"},"created_at":"2011-12-28T13:49:40Z","updated_at":"2011-12-28T13:49:40Z","id":3290907,"body":"Man.. that sounds ugly/clumsy..... I really need to find time to understand the complete nitro api and see if i can simplify this..","url":"https://api.github.com/repos/favoretti/nsnitro/issues/comments/3290907"},"action":"created"}