{"action":"closed","issue":{"url":"https://api.github.com/repos/GENI-NSF/geni-tools/issues/408","labels_url":"https://api.github.com/repos/GENI-NSF/geni-tools/issues/408/labels{/name}","comments_url":"https://api.github.com/repos/GENI-NSF/geni-tools/issues/408/comments","events_url":"https://api.github.com/repos/GENI-NSF/geni-tools/issues/408/events","html_url":"https://github.com/GENI-NSF/geni-tools/issues/408","id":77788493,"number":408,"title":"undefined variable in amhandler.py","user":{"login":"tcmitchell","id":340136,"avatar_url":"https://avatars.githubusercontent.com/u/340136?v=3","gravatar_id":"","url":"https://api.github.com/users/tcmitchell","html_url":"https://github.com/tcmitchell","followers_url":"https://api.github.com/users/tcmitchell/followers","following_url":"https://api.github.com/users/tcmitchell/following{/other_user}","gists_url":"https://api.github.com/users/tcmitchell/gists{/gist_id}","starred_url":"https://api.github.com/users/tcmitchell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcmitchell/subscriptions","organizations_url":"https://api.github.com/users/tcmitchell/orgs","repos_url":"https://api.github.com/users/tcmitchell/repos","events_url":"https://api.github.com/users/tcmitchell/events{/privacy}","received_events_url":"https://api.github.com/users/tcmitchell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GENI-NSF/geni-tools/labels/omni","name":"omni","color":"fad8c7"}],"state":"closed","locked":false,"assignee":{"login":"ahelsing","id":12136824,"avatar_url":"https://avatars.githubusercontent.com/u/12136824?v=3","gravatar_id":"","url":"https://api.github.com/users/ahelsing","html_url":"https://github.com/ahelsing","followers_url":"https://api.github.com/users/ahelsing/followers","following_url":"https://api.github.com/users/ahelsing/following{/other_user}","gists_url":"https://api.github.com/users/ahelsing/gists{/gist_id}","starred_url":"https://api.github.com/users/ahelsing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahelsing/subscriptions","organizations_url":"https://api.github.com/users/ahelsing/orgs","repos_url":"https://api.github.com/users/ahelsing/repos","events_url":"https://api.github.com/users/ahelsing/events{/privacy}","received_events_url":"https://api.github.com/users/ahelsing/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/GENI-NSF/geni-tools/milestones/23","html_url":"https://github.com/GENI-NSF/geni-tools/milestones/2.5","labels_url":"https://api.github.com/repos/GENI-NSF/geni-tools/milestones/23/labels","id":1116379,"number":23,"title":"2.5","description":null,"creator":{"login":"ahelsing","id":12136824,"avatar_url":"https://avatars.githubusercontent.com/u/12136824?v=3","gravatar_id":"","url":"https://api.github.com/users/ahelsing","html_url":"https://github.com/ahelsing","followers_url":"https://api.github.com/users/ahelsing/followers","following_url":"https://api.github.com/users/ahelsing/following{/other_user}","gists_url":"https://api.github.com/users/ahelsing/gists{/gist_id}","starred_url":"https://api.github.com/users/ahelsing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahelsing/subscriptions","organizations_url":"https://api.github.com/users/ahelsing/orgs","repos_url":"https://api.github.com/users/ahelsing/repos","events_url":"https://api.github.com/users/ahelsing/events{/privacy}","received_events_url":"https://api.github.com/users/ahelsing/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":24,"state":"open","created_at":"2015-05-18T19:03:20Z","updated_at":"2015-05-18T20:12:47Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-05-18T20:12:32Z","updated_at":"2015-05-18T20:12:47Z","closed_at":"2015-05-18T20:12:47Z","body":"A user reported the following exception when running status on a slice with 4 slivers, each one with a different expiration time:\r\n```\r\nFile \"/gcf-2.4.1/src/omnilib/amhandler.py\", line 3058, in status\r\n    firstCount = len(sliverExps[time])\r\nNameError: global name 'time' is not defined\r\n```\r\n\r\nUser's comment:\r\n  After taking a look at the code I realized that time isn't in fact defined. It seems that when summarizing the sliver expiration dates it first checks if the length of orderedDates is 1 or 0 and if not checks the len(sliverExps[time]) that fails.\r\n\r\nThe user confirms the following suggestions lets them work around the issue:\r\n  You may be able to work around [issue](this) by commenting out the offending line and then removing “firstCount” from the log message on the next line (both in the format string and in the arguments).\n\n _Imported from trac ticket [#408](http://trac.gpolab.bbn.com/gcf/ticket/408),  created by tmitchel on 10-21-2013 at 11:21, last modified: 10-24-2013 at 14:59_\n"}}