{"action":"created","comment":{"url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/pulls/comments/59225545","id":59225545,"diff_hunk":"@@ -718,6 +718,10 @@ def volume_update(device, dmd, evt):\n     elif 'detach.end' in evt.eventClassKey:\n         # the volume is being detached from an instance\n         setattr(objmap, 'set_instance', '')\n+    # make sure objmap has volume_type and the len == uuid len\n+    if hasattr(objmap, 'volume_type') and len(objmap.volume_type) == 36:","path":"ZenPacks/zenoss/OpenStackInfrastructure/events.py","position":5,"original_position":5,"commit_id":"0fc607e8a604df18b83c6c83fdc31a8da1da484f","original_commit_id":"0fc607e8a604df18b83c6c83fdc31a8da1da484f","user":{"login":"pcarinhas","id":5034179,"avatar_url":"https://avatars.githubusercontent.com/u/5034179?v=3","gravatar_id":"","url":"https://api.github.com/users/pcarinhas","html_url":"https://github.com/pcarinhas","followers_url":"https://api.github.com/users/pcarinhas/followers","following_url":"https://api.github.com/users/pcarinhas/following{/other_user}","gists_url":"https://api.github.com/users/pcarinhas/gists{/gist_id}","starred_url":"https://api.github.com/users/pcarinhas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcarinhas/subscriptions","organizations_url":"https://api.github.com/users/pcarinhas/orgs","repos_url":"https://api.github.com/users/pcarinhas/repos","events_url":"https://api.github.com/users/pcarinhas/events{/privacy}","received_events_url":"https://api.github.com/users/pcarinhas/received_events","type":"User","site_admin":false},"body":"Its probably better to try to detect a UUID via Regex here instead of raw lenght.","created_at":"2016-04-11T15:31:56Z","updated_at":"2016-04-11T15:31:56Z","html_url":"https://github.com/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/pull/270#discussion_r59225545","pull_request_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/pulls/270","_links":{"self":{"href":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/pulls/comments/59225545"},"html":{"href":"https://github.com/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/pull/270#discussion_r59225545"},"pull_request":{"href":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/pulls/270"}}},"pull_request":{"url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/pulls/270","id":66005195,"html_url":"https://github.com/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/pull/270","diff_url":"https://github.com/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/pull/270.diff","patch_url":"https://github.com/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/pull/270.patch","issue_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/issues/270","number":270,"state":"open","locked":false,"title":"Feature/zen 22701","user":{"login":"yichi-lu","id":2955881,"avatar_url":"https://avatars.githubusercontent.com/u/2955881?v=3","gravatar_id":"","url":"https://api.github.com/users/yichi-lu","html_url":"https://github.com/yichi-lu","followers_url":"https://api.github.com/users/yichi-lu/followers","following_url":"https://api.github.com/users/yichi-lu/following{/other_user}","gists_url":"https://api.github.com/users/yichi-lu/gists{/gist_id}","starred_url":"https://api.github.com/users/yichi-lu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yichi-lu/subscriptions","organizations_url":"https://api.github.com/users/yichi-lu/orgs","repos_url":"https://api.github.com/users/yichi-lu/repos","events_url":"https://api.github.com/users/yichi-lu/events{/privacy}","received_events_url":"https://api.github.com/users/yichi-lu/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-11T14:42:02Z","updated_at":"2016-04-11T15:31:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8166b17bb6c3aa1c54352c7e6a265d29ac37e43b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/pulls/270/commits","review_comments_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/pulls/270/comments","review_comment_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/issues/270/comments","statuses_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/statuses/0fc607e8a604df18b83c6c83fdc31a8da1da484f","head":{"label":"zenoss:feature/ZEN-22701","ref":"feature/ZEN-22701","sha":"0fc607e8a604df18b83c6c83fdc31a8da1da484f","user":{"login":"zenoss","id":243767,"avatar_url":"https://avatars.githubusercontent.com/u/243767?v=3","gravatar_id":"","url":"https://api.github.com/users/zenoss","html_url":"https://github.com/zenoss","followers_url":"https://api.github.com/users/zenoss/followers","following_url":"https://api.github.com/users/zenoss/following{/other_user}","gists_url":"https://api.github.com/users/zenoss/gists{/gist_id}","starred_url":"https://api.github.com/users/zenoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenoss/subscriptions","organizations_url":"https://api.github.com/users/zenoss/orgs","repos_url":"https://api.github.com/users/zenoss/repos","events_url":"https://api.github.com/users/zenoss/events{/privacy}","received_events_url":"https://api.github.com/users/zenoss/received_events","type":"Organization","site_admin":false},"repo":{"id":1801526,"name":"ZenPacks.zenoss.OpenStackInfrastructure","full_name":"zenoss/ZenPacks.zenoss.OpenStackInfrastructure","owner":{"login":"zenoss","id":243767,"avatar_url":"https://avatars.githubusercontent.com/u/243767?v=3","gravatar_id":"","url":"https://api.github.com/users/zenoss","html_url":"https://github.com/zenoss","followers_url":"https://api.github.com/users/zenoss/followers","following_url":"https://api.github.com/users/zenoss/following{/other_user}","gists_url":"https://api.github.com/users/zenoss/gists{/gist_id}","starred_url":"https://api.github.com/users/zenoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenoss/subscriptions","organizations_url":"https://api.github.com/users/zenoss/orgs","repos_url":"https://api.github.com/users/zenoss/repos","events_url":"https://api.github.com/users/zenoss/events{/privacy}","received_events_url":"https://api.github.com/users/zenoss/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zenoss/ZenPacks.zenoss.OpenStackInfrastructure","description":"OpenStack Monitoring (Provider-Oriented)","fork":false,"url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure","forks_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/forks","keys_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/teams","hooks_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/hooks","issue_events_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/issues/events{/number}","events_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/events","assignees_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/assignees{/user}","branches_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/branches{/branch}","tags_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/tags","blobs_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/git/refs{/sha}","trees_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/statuses/{sha}","languages_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/languages","stargazers_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/stargazers","contributors_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/contributors","subscribers_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/subscribers","subscription_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/subscription","commits_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/commits{/sha}","git_commits_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/git/commits{/sha}","comments_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/comments{/number}","issue_comment_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/issues/comments{/number}","contents_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/contents/{+path}","compare_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/merges","archive_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/downloads","issues_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/issues{/number}","pulls_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/pulls{/number}","milestones_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/milestones{/number}","notifications_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/labels{/name}","releases_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/releases{/id}","deployments_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/deployments","created_at":"2011-05-25T22:18:22Z","updated_at":"2016-03-30T01:59:18Z","pushed_at":"2016-04-11T14:42:02Z","git_url":"git://github.com/zenoss/ZenPacks.zenoss.OpenStackInfrastructure.git","ssh_url":"git@github.com:zenoss/ZenPacks.zenoss.OpenStackInfrastructure.git","clone_url":"https://github.com/zenoss/ZenPacks.zenoss.OpenStackInfrastructure.git","svn_url":"https://github.com/zenoss/ZenPacks.zenoss.OpenStackInfrastructure","homepage":"","size":13217,"stargazers_count":32,"watchers_count":32,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":11,"forks":15,"open_issues":11,"watchers":32,"default_branch":"develop"}},"base":{"label":"zenoss:develop","ref":"develop","sha":"20b8b450a9723475405f42fa21296059b36c25b3","user":{"login":"zenoss","id":243767,"avatar_url":"https://avatars.githubusercontent.com/u/243767?v=3","gravatar_id":"","url":"https://api.github.com/users/zenoss","html_url":"https://github.com/zenoss","followers_url":"https://api.github.com/users/zenoss/followers","following_url":"https://api.github.com/users/zenoss/following{/other_user}","gists_url":"https://api.github.com/users/zenoss/gists{/gist_id}","starred_url":"https://api.github.com/users/zenoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenoss/subscriptions","organizations_url":"https://api.github.com/users/zenoss/orgs","repos_url":"https://api.github.com/users/zenoss/repos","events_url":"https://api.github.com/users/zenoss/events{/privacy}","received_events_url":"https://api.github.com/users/zenoss/received_events","type":"Organization","site_admin":false},"repo":{"id":1801526,"name":"ZenPacks.zenoss.OpenStackInfrastructure","full_name":"zenoss/ZenPacks.zenoss.OpenStackInfrastructure","owner":{"login":"zenoss","id":243767,"avatar_url":"https://avatars.githubusercontent.com/u/243767?v=3","gravatar_id":"","url":"https://api.github.com/users/zenoss","html_url":"https://github.com/zenoss","followers_url":"https://api.github.com/users/zenoss/followers","following_url":"https://api.github.com/users/zenoss/following{/other_user}","gists_url":"https://api.github.com/users/zenoss/gists{/gist_id}","starred_url":"https://api.github.com/users/zenoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenoss/subscriptions","organizations_url":"https://api.github.com/users/zenoss/orgs","repos_url":"https://api.github.com/users/zenoss/repos","events_url":"https://api.github.com/users/zenoss/events{/privacy}","received_events_url":"https://api.github.com/users/zenoss/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zenoss/ZenPacks.zenoss.OpenStackInfrastructure","description":"OpenStack Monitoring (Provider-Oriented)","fork":false,"url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure","forks_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/forks","keys_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/teams","hooks_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/hooks","issue_events_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/issues/events{/number}","events_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/events","assignees_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/assignees{/user}","branches_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/branches{/branch}","tags_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/tags","blobs_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/git/refs{/sha}","trees_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/statuses/{sha}","languages_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/languages","stargazers_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/stargazers","contributors_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/contributors","subscribers_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/subscribers","subscription_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/subscription","commits_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/commits{/sha}","git_commits_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/git/commits{/sha}","comments_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/comments{/number}","issue_comment_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/issues/comments{/number}","contents_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/contents/{+path}","compare_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/merges","archive_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/downloads","issues_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/issues{/number}","pulls_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/pulls{/number}","milestones_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/milestones{/number}","notifications_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/labels{/name}","releases_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/releases{/id}","deployments_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/deployments","created_at":"2011-05-25T22:18:22Z","updated_at":"2016-03-30T01:59:18Z","pushed_at":"2016-04-11T14:42:02Z","git_url":"git://github.com/zenoss/ZenPacks.zenoss.OpenStackInfrastructure.git","ssh_url":"git@github.com:zenoss/ZenPacks.zenoss.OpenStackInfrastructure.git","clone_url":"https://github.com/zenoss/ZenPacks.zenoss.OpenStackInfrastructure.git","svn_url":"https://github.com/zenoss/ZenPacks.zenoss.OpenStackInfrastructure","homepage":"","size":13217,"stargazers_count":32,"watchers_count":32,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":11,"forks":15,"open_issues":11,"watchers":32,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/pulls/270"},"html":{"href":"https://github.com/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/pull/270"},"issue":{"href":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/issues/270"},"comments":{"href":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/issues/270/comments"},"review_comments":{"href":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/pulls/270/comments"},"review_comment":{"href":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/pulls/270/commits"},"statuses":{"href":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.OpenStackInfrastructure/statuses/0fc607e8a604df18b83c6c83fdc31a8da1da484f"}}}}