{"action":"closed","issue":{"url":"https://api.github.com/repos/pywbem/pywbem/issues/154","repository_url":"https://api.github.com/repos/pywbem/pywbem","labels_url":"https://api.github.com/repos/pywbem/pywbem/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/pywbem/pywbem/issues/154/comments","events_url":"https://api.github.com/repos/pywbem/pywbem/issues/154/events","html_url":"https://github.com/pywbem/pywbem/issues/154","id":144111049,"number":154,"title":"Optional keyword params in WBEMConnection operation methods cannot be specified with None","user":{"login":"andy-maier","id":8939758,"avatar_url":"https://avatars.githubusercontent.com/u/8939758?v=3","gravatar_id":"","url":"https://api.github.com/users/andy-maier","html_url":"https://github.com/andy-maier","followers_url":"https://api.github.com/users/andy-maier/followers","following_url":"https://api.github.com/users/andy-maier/following{/other_user}","gists_url":"https://api.github.com/users/andy-maier/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-maier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-maier/subscriptions","organizations_url":"https://api.github.com/users/andy-maier/orgs","repos_url":"https://api.github.com/users/andy-maier/repos","events_url":"https://api.github.com/users/andy-maier/events{/privacy}","received_events_url":"https://api.github.com/users/andy-maier/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pywbem/pywbem/labels/area:%20code","name":"area: code","color":"207de5"},{"url":"https://api.github.com/repos/pywbem/pywbem/labels/resolution:%20fixed%20in%20PR","name":"resolution: fixed in PR","color":"cccccc"}],"state":"closed","locked":false,"assignee":{"login":"andy-maier","id":8939758,"avatar_url":"https://avatars.githubusercontent.com/u/8939758?v=3","gravatar_id":"","url":"https://api.github.com/users/andy-maier","html_url":"https://github.com/andy-maier","followers_url":"https://api.github.com/users/andy-maier/followers","following_url":"https://api.github.com/users/andy-maier/following{/other_user}","gists_url":"https://api.github.com/users/andy-maier/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-maier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-maier/subscriptions","organizations_url":"https://api.github.com/users/andy-maier/orgs","repos_url":"https://api.github.com/users/andy-maier/repos","events_url":"https://api.github.com/users/andy-maier/events{/privacy}","received_events_url":"https://api.github.com/users/andy-maier/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/pywbem/pywbem/milestones/2","html_url":"https://github.com/pywbem/pywbem/milestones/0.9.0","labels_url":"https://api.github.com/repos/pywbem/pywbem/milestones/2/labels","id":1526630,"number":2,"title":"0.9.0","description":null,"creator":{"login":"andy-maier","id":8939758,"avatar_url":"https://avatars.githubusercontent.com/u/8939758?v=3","gravatar_id":"","url":"https://api.github.com/users/andy-maier","html_url":"https://github.com/andy-maier","followers_url":"https://api.github.com/users/andy-maier/followers","following_url":"https://api.github.com/users/andy-maier/following{/other_user}","gists_url":"https://api.github.com/users/andy-maier/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-maier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-maier/subscriptions","organizations_url":"https://api.github.com/users/andy-maier/orgs","repos_url":"https://api.github.com/users/andy-maier/repos","events_url":"https://api.github.com/users/andy-maier/events{/privacy}","received_events_url":"https://api.github.com/users/andy-maier/received_events","type":"User","site_admin":false},"open_issues":34,"closed_issues":28,"state":"open","created_at":"2016-01-20T17:44:04Z","updated_at":"2016-03-30T22:25:03Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-03-28T23:36:58Z","updated_at":"2016-03-30T22:25:03Z","closed_at":"2016-03-30T22:25:03Z","body":"The documentation states for some optional keyword parameters in WBEMConnection operation methods that their default would be `None`.\r\n\r\nHowever, if a caller specifies the parameter with `None`, the CIM-XML creation in `imethodcall()` fails with:\r\n\r\n    File \"/media/share/Projects/pywbem/repos/pywbem/pywbem/cim_operations.py\", line 609, in imethodcall\r\n      for x in params.items()]\r\n    File \"/media/share/Projects/pywbem/repos/pywbem/pywbem/cim_obj.py\", line 2915, in tocimxml\r\n      (value, builtin_type(value)))\r\n    ValueError: Can't convert None (<type 'NoneType'>) to CIM XML\r\n\r\nReproduction:\r\n\r\n    conn.EnumerateClassNames(ClassName=None)\r\n"}}