{"action":"reopened","issue":{"url":"https://api.github.com/repos/sheagcraig/python-jss/issues/34","labels_url":"https://api.github.com/repos/sheagcraig/python-jss/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/sheagcraig/python-jss/issues/34/comments","events_url":"https://api.github.com/repos/sheagcraig/python-jss/issues/34/events","html_url":"https://github.com/sheagcraig/python-jss/issues/34","id":69017979,"number":34,"title":"add_criterion method returning errors","user":{"login":"sbrosnihan","id":2703687,"avatar_url":"https://avatars.githubusercontent.com/u/2703687?v=3","gravatar_id":"","url":"https://api.github.com/users/sbrosnihan","html_url":"https://github.com/sbrosnihan","followers_url":"https://api.github.com/users/sbrosnihan/followers","following_url":"https://api.github.com/users/sbrosnihan/following{/other_user}","gists_url":"https://api.github.com/users/sbrosnihan/gists{/gist_id}","starred_url":"https://api.github.com/users/sbrosnihan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbrosnihan/subscriptions","organizations_url":"https://api.github.com/users/sbrosnihan/orgs","repos_url":"https://api.github.com/users/sbrosnihan/repos","events_url":"https://api.github.com/users/sbrosnihan/events{/privacy}","received_events_url":"https://api.github.com/users/sbrosnihan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-16T21:55:14Z","updated_at":"2015-04-21T13:39:23Z","closed_at":null,"body":"Thanks for all the hard work on this. It sure makes interacting with the JSS API easier! I have a problem that may be related to improper usage by me or a bug.  I've created a variable: \r\n\r\n    jss_prefs = jss.JSSPrefs()\r\n    j = jss.JSS(jss_prefs, ssl_verify=False, suppress_warnings=True)\r\n    smartGroup = j.ComputerGroup(99)\r\n\r\nWhen trying to add criteria to smartGroup (which is a smart group), I get the following error:\r\n\r\n    smartGroup.add_criterion(name=\"Username\", priority=0, and_or=\"and\", search_type=\"is\", value=\"bobafett2\")\r\n    self.criteria.append(criterion)\r\n    AttributeError: 'ComputerGroup' object has no attribute 'criteria'\r\n\r\nI can see the contents of the group and criteria, also inspect.getargspec(smartGroup.add_criterion)\r\nreturns this:\r\n\r\n    ArgSpec(args=['self', 'name', 'priority', 'and_or', 'search_type', 'value'], varargs=None, keywords=None, defaults=None)"}}