{"action":"created","issue":{"url":"https://api.github.com/repos/marklap/rundeckrun/issues/22","labels_url":"https://api.github.com/repos/marklap/rundeckrun/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/marklap/rundeckrun/issues/22/comments","events_url":"https://api.github.com/repos/marklap/rundeckrun/issues/22/events","html_url":"https://github.com/marklap/rundeckrun/issues/22","id":62084952,"number":22,"title":"Exception in update_project_resources method","user":{"login":"mikhels","id":9398252,"avatar_url":"https://avatars.githubusercontent.com/u/9398252?v=3","gravatar_id":"","url":"https://api.github.com/users/mikhels","html_url":"https://github.com/mikhels","followers_url":"https://api.github.com/users/mikhels/followers","following_url":"https://api.github.com/users/mikhels/following{/other_user}","gists_url":"https://api.github.com/users/mikhels/gists{/gist_id}","starred_url":"https://api.github.com/users/mikhels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikhels/subscriptions","organizations_url":"https://api.github.com/users/mikhels/orgs","repos_url":"https://api.github.com/users/mikhels/repos","events_url":"https://api.github.com/users/mikhels/events{/privacy}","received_events_url":"https://api.github.com/users/mikhels/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-16T13:42:37Z","updated_at":"2015-03-16T16:30:39Z","closed_at":null,"body":"Hi, faced with the following problem when tried to update resources:\r\n\r\n```\r\n...\r\nnew_node = {\"name\": \"some_node\", \"hostname\": \"some_node.some_domain\", \"username\": \"some_user\"}\r\nrd.update_project_resources(project, nodes=[new_node])\r\n\r\nTraceback (most recent call last):\r\n  File \"rundeck_test.py\", line 20, in <module>\r\n    rd.update_project_resources(project, nodes=[new_node])\r\n  File \"/usr/local/lib/python2.7/dist-packages/rundeckrun-0.1.12-py2.7.egg/rundeck/transforms.py\", line 258, in wrapper\r\n    results = func(self, *args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/rundeckrun-0.1.12-py2.7.egg/rundeck/client.py\", line 964, in update_project_resources\r\n    if isinstance(node, dict) and set(d.keys()).issuperset(required_keys):\r\nNameError: global name 'd' is not defined\r\n```\r\n\r\nSeems that 'node' variable should be used instead of 'd'. Can you please check and fix it? Thank you in advance!"},"comment":{"url":"https://api.github.com/repos/marklap/rundeckrun/issues/comments/81778520","html_url":"https://github.com/marklap/rundeckrun/issues/22#issuecomment-81778520","issue_url":"https://api.github.com/repos/marklap/rundeckrun/issues/22","id":81778520,"user":{"login":"marklap","id":121895,"avatar_url":"https://avatars.githubusercontent.com/u/121895?v=3","gravatar_id":"","url":"https://api.github.com/users/marklap","html_url":"https://github.com/marklap","followers_url":"https://api.github.com/users/marklap/followers","following_url":"https://api.github.com/users/marklap/following{/other_user}","gists_url":"https://api.github.com/users/marklap/gists{/gist_id}","starred_url":"https://api.github.com/users/marklap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marklap/subscriptions","organizations_url":"https://api.github.com/users/marklap/orgs","repos_url":"https://api.github.com/users/marklap/repos","events_url":"https://api.github.com/users/marklap/events{/privacy}","received_events_url":"https://api.github.com/users/marklap/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T16:30:39Z","updated_at":"2015-03-16T16:30:39Z","body":"Excellent. I'll cut a release soon."}}