{"action":"created","comment":{"url":"https://api.github.com/repos/dmwm/WMCore/pulls/comments/32423910","id":32423910,"diff_hunk":"@@ -548,64 +549,66 @@ def lfnsInBlock(self, fileBlockName):\n             raise DBSReaderError(msg)\n \n \n-    def listFileBlockLocation(self, fileBlockName, dbsOnly = False, phedexNodes=False):\n+    def listFileBlockLocation(self, fileBlockNames, dbsOnly = False):\n         \"\"\"\n         _listFileBlockLocation_\n \n         Get origin_site_name of a block\n \n         \"\"\"\n-        blockNames = [fileBlockName] if isinstance(fileBlockName, basestring) else fileBlockName\n-        for block in blockNames:\n+        \n+        singleBlockName = None\n+        if isinstance(fileBlockNames, basestring):\n+            singleBlockName = fileBlockNames\n+            fileBlockNames = [fileBlockNames]\n+ \n+        for block in fileBlockNames:\n             self.checkBlockName(block)\n \n-        blockInfo = {}\n+        locations = {}\n+        node_filter = set(['UNKNOWN', None])\n         if not dbsOnly:\n             try:\n-                blockInfo = self.phedex.getReplicaSEForBlocks(phedexNodes=phedexNodes, block=blockNames, complete='y')\n-            except Exception as ex:\n+                blocksInfo = self.phedex.getReplicaPhEDExNodesForBlocks(block=fileBlockNames, complete='y')\n+            except Exception, ex:","path":"src/python/WMCore/Services/DBS/DBS3Reader.py","position":48,"original_position":48,"commit_id":"d2cef42e4ca553e9edf13badd8c3cb0323ecbb42","original_commit_id":"d2cef42e4ca553e9edf13badd8c3cb0323ecbb42","user":{"login":"alexanderrichards","id":4686942,"avatar_url":"https://avatars.githubusercontent.com/u/4686942?v=3","gravatar_id":"","url":"https://api.github.com/users/alexanderrichards","html_url":"https://github.com/alexanderrichards","followers_url":"https://api.github.com/users/alexanderrichards/followers","following_url":"https://api.github.com/users/alexanderrichards/following{/other_user}","gists_url":"https://api.github.com/users/alexanderrichards/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanderrichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanderrichards/subscriptions","organizations_url":"https://api.github.com/users/alexanderrichards/orgs","repos_url":"https://api.github.com/users/alexanderrichards/repos","events_url":"https://api.github.com/users/alexanderrichards/events{/privacy}","received_events_url":"https://api.github.com/users/alexanderrichards/received_events","type":"User","site_admin":false},"body":"oops yes this has come from rebasing my changes onto the head looks like it's a change I've introduced. I'll ensure that this is changed back before this branch is pulled.","created_at":"2015-06-15T14:14:32Z","updated_at":"2015-06-15T14:14:32Z","html_url":"https://github.com/dmwm/WMCore/pull/5989#discussion_r32423910","pull_request_url":"https://api.github.com/repos/dmwm/WMCore/pulls/5989","_links":{"self":{"href":"https://api.github.com/repos/dmwm/WMCore/pulls/comments/32423910"},"html":{"href":"https://github.com/dmwm/WMCore/pull/5989#discussion_r32423910"},"pull_request":{"href":"https://api.github.com/repos/dmwm/WMCore/pulls/5989"}}},"pull_request":{"url":"https://api.github.com/repos/dmwm/WMCore/pulls/5989","id":37675781,"html_url":"https://github.com/dmwm/WMCore/pull/5989","diff_url":"https://github.com/dmwm/WMCore/pull/5989.diff","patch_url":"https://github.com/dmwm/WMCore/pull/5989.patch","issue_url":"https://api.github.com/repos/dmwm/WMCore/issues/5989","number":5989,"state":"open","locked":false,"title":"Merging updated","user":{"login":"alexanderrichards","id":4686942,"avatar_url":"https://avatars.githubusercontent.com/u/4686942?v=3","gravatar_id":"","url":"https://api.github.com/users/alexanderrichards","html_url":"https://github.com/alexanderrichards","followers_url":"https://api.github.com/users/alexanderrichards/followers","following_url":"https://api.github.com/users/alexanderrichards/following{/other_user}","gists_url":"https://api.github.com/users/alexanderrichards/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanderrichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanderrichards/subscriptions","organizations_url":"https://api.github.com/users/alexanderrichards/orgs","repos_url":"https://api.github.com/users/alexanderrichards/repos","events_url":"https://api.github.com/users/alexanderrichards/events{/privacy}","received_events_url":"https://api.github.com/users/alexanderrichards/received_events","type":"User","site_admin":false},"body":"updated version of #5958 rebased on master","created_at":"2015-06-15T10:04:11Z","updated_at":"2015-06-15T14:14:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"63796712bdd292c787102132b852ada342735fff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dmwm/WMCore/pulls/5989/commits","review_comments_url":"https://api.github.com/repos/dmwm/WMCore/pulls/5989/comments","review_comment_url":"https://api.github.com/repos/dmwm/WMCore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dmwm/WMCore/issues/5989/comments","statuses_url":"https://api.github.com/repos/dmwm/WMCore/statuses/d2cef42e4ca553e9edf13badd8c3cb0323ecbb42","head":{"label":"alexanderrichards:merging_updated","ref":"merging_updated","sha":"d2cef42e4ca553e9edf13badd8c3cb0323ecbb42","user":{"login":"alexanderrichards","id":4686942,"avatar_url":"https://avatars.githubusercontent.com/u/4686942?v=3","gravatar_id":"","url":"https://api.github.com/users/alexanderrichards","html_url":"https://github.com/alexanderrichards","followers_url":"https://api.github.com/users/alexanderrichards/followers","following_url":"https://api.github.com/users/alexanderrichards/following{/other_user}","gists_url":"https://api.github.com/users/alexanderrichards/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanderrichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanderrichards/subscriptions","organizations_url":"https://api.github.com/users/alexanderrichards/orgs","repos_url":"https://api.github.com/users/alexanderrichards/repos","events_url":"https://api.github.com/users/alexanderrichards/events{/privacy}","received_events_url":"https://api.github.com/users/alexanderrichards/received_events","type":"User","site_admin":false},"repo":{"id":14683142,"name":"WMCore","full_name":"alexanderrichards/WMCore","owner":{"login":"alexanderrichards","id":4686942,"avatar_url":"https://avatars.githubusercontent.com/u/4686942?v=3","gravatar_id":"","url":"https://api.github.com/users/alexanderrichards","html_url":"https://github.com/alexanderrichards","followers_url":"https://api.github.com/users/alexanderrichards/followers","following_url":"https://api.github.com/users/alexanderrichards/following{/other_user}","gists_url":"https://api.github.com/users/alexanderrichards/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanderrichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanderrichards/subscriptions","organizations_url":"https://api.github.com/users/alexanderrichards/orgs","repos_url":"https://api.github.com/users/alexanderrichards/repos","events_url":"https://api.github.com/users/alexanderrichards/events{/privacy}","received_events_url":"https://api.github.com/users/alexanderrichards/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexanderrichards/WMCore","description":"WMCore","fork":true,"url":"https://api.github.com/repos/alexanderrichards/WMCore","forks_url":"https://api.github.com/repos/alexanderrichards/WMCore/forks","keys_url":"https://api.github.com/repos/alexanderrichards/WMCore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexanderrichards/WMCore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexanderrichards/WMCore/teams","hooks_url":"https://api.github.com/repos/alexanderrichards/WMCore/hooks","issue_events_url":"https://api.github.com/repos/alexanderrichards/WMCore/issues/events{/number}","events_url":"https://api.github.com/repos/alexanderrichards/WMCore/events","assignees_url":"https://api.github.com/repos/alexanderrichards/WMCore/assignees{/user}","branches_url":"https://api.github.com/repos/alexanderrichards/WMCore/branches{/branch}","tags_url":"https://api.github.com/repos/alexanderrichards/WMCore/tags","blobs_url":"https://api.github.com/repos/alexanderrichards/WMCore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexanderrichards/WMCore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexanderrichards/WMCore/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexanderrichards/WMCore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexanderrichards/WMCore/statuses/{sha}","languages_url":"https://api.github.com/repos/alexanderrichards/WMCore/languages","stargazers_url":"https://api.github.com/repos/alexanderrichards/WMCore/stargazers","contributors_url":"https://api.github.com/repos/alexanderrichards/WMCore/contributors","subscribers_url":"https://api.github.com/repos/alexanderrichards/WMCore/subscribers","subscription_url":"https://api.github.com/repos/alexanderrichards/WMCore/subscription","commits_url":"https://api.github.com/repos/alexanderrichards/WMCore/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexanderrichards/WMCore/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexanderrichards/WMCore/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexanderrichards/WMCore/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexanderrichards/WMCore/contents/{+path}","compare_url":"https://api.github.com/repos/alexanderrichards/WMCore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexanderrichards/WMCore/merges","archive_url":"https://api.github.com/repos/alexanderrichards/WMCore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexanderrichards/WMCore/downloads","issues_url":"https://api.github.com/repos/alexanderrichards/WMCore/issues{/number}","pulls_url":"https://api.github.com/repos/alexanderrichards/WMCore/pulls{/number}","milestones_url":"https://api.github.com/repos/alexanderrichards/WMCore/milestones{/number}","notifications_url":"https://api.github.com/repos/alexanderrichards/WMCore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexanderrichards/WMCore/labels{/name}","releases_url":"https://api.github.com/repos/alexanderrichards/WMCore/releases{/id}","created_at":"2013-11-25T10:50:16Z","updated_at":"2015-04-09T09:38:10Z","pushed_at":"2015-06-15T10:00:58Z","git_url":"git://github.com/alexanderrichards/WMCore.git","ssh_url":"git@github.com:alexanderrichards/WMCore.git","clone_url":"https://github.com/alexanderrichards/WMCore.git","svn_url":"https://github.com/alexanderrichards/WMCore","homepage":"https://svnweb.cern.ch/trac/CMSDMWM/","size":22350,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dmwm:master","ref":"master","sha":"654044975bba7ad1e3b4fc318ddc213f9b8f005a","user":{"login":"dmwm","id":988897,"avatar_url":"https://avatars.githubusercontent.com/u/988897?v=3","gravatar_id":"","url":"https://api.github.com/users/dmwm","html_url":"https://github.com/dmwm","followers_url":"https://api.github.com/users/dmwm/followers","following_url":"https://api.github.com/users/dmwm/following{/other_user}","gists_url":"https://api.github.com/users/dmwm/gists{/gist_id}","starred_url":"https://api.github.com/users/dmwm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmwm/subscriptions","organizations_url":"https://api.github.com/users/dmwm/orgs","repos_url":"https://api.github.com/users/dmwm/repos","events_url":"https://api.github.com/users/dmwm/events{/privacy}","received_events_url":"https://api.github.com/users/dmwm/received_events","type":"Organization","site_admin":false},"repo":{"id":2370458,"name":"WMCore","full_name":"dmwm/WMCore","owner":{"login":"dmwm","id":988897,"avatar_url":"https://avatars.githubusercontent.com/u/988897?v=3","gravatar_id":"","url":"https://api.github.com/users/dmwm","html_url":"https://github.com/dmwm","followers_url":"https://api.github.com/users/dmwm/followers","following_url":"https://api.github.com/users/dmwm/following{/other_user}","gists_url":"https://api.github.com/users/dmwm/gists{/gist_id}","starred_url":"https://api.github.com/users/dmwm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmwm/subscriptions","organizations_url":"https://api.github.com/users/dmwm/orgs","repos_url":"https://api.github.com/users/dmwm/repos","events_url":"https://api.github.com/users/dmwm/events{/privacy}","received_events_url":"https://api.github.com/users/dmwm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dmwm/WMCore","description":"WMCore","fork":false,"url":"https://api.github.com/repos/dmwm/WMCore","forks_url":"https://api.github.com/repos/dmwm/WMCore/forks","keys_url":"https://api.github.com/repos/dmwm/WMCore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmwm/WMCore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmwm/WMCore/teams","hooks_url":"https://api.github.com/repos/dmwm/WMCore/hooks","issue_events_url":"https://api.github.com/repos/dmwm/WMCore/issues/events{/number}","events_url":"https://api.github.com/repos/dmwm/WMCore/events","assignees_url":"https://api.github.com/repos/dmwm/WMCore/assignees{/user}","branches_url":"https://api.github.com/repos/dmwm/WMCore/branches{/branch}","tags_url":"https://api.github.com/repos/dmwm/WMCore/tags","blobs_url":"https://api.github.com/repos/dmwm/WMCore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmwm/WMCore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmwm/WMCore/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmwm/WMCore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmwm/WMCore/statuses/{sha}","languages_url":"https://api.github.com/repos/dmwm/WMCore/languages","stargazers_url":"https://api.github.com/repos/dmwm/WMCore/stargazers","contributors_url":"https://api.github.com/repos/dmwm/WMCore/contributors","subscribers_url":"https://api.github.com/repos/dmwm/WMCore/subscribers","subscription_url":"https://api.github.com/repos/dmwm/WMCore/subscription","commits_url":"https://api.github.com/repos/dmwm/WMCore/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmwm/WMCore/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmwm/WMCore/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmwm/WMCore/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmwm/WMCore/contents/{+path}","compare_url":"https://api.github.com/repos/dmwm/WMCore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmwm/WMCore/merges","archive_url":"https://api.github.com/repos/dmwm/WMCore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmwm/WMCore/downloads","issues_url":"https://api.github.com/repos/dmwm/WMCore/issues{/number}","pulls_url":"https://api.github.com/repos/dmwm/WMCore/pulls{/number}","milestones_url":"https://api.github.com/repos/dmwm/WMCore/milestones{/number}","notifications_url":"https://api.github.com/repos/dmwm/WMCore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmwm/WMCore/labels{/name}","releases_url":"https://api.github.com/repos/dmwm/WMCore/releases{/id}","created_at":"2011-09-12T10:37:21Z","updated_at":"2015-05-08T18:42:10Z","pushed_at":"2015-06-15T10:04:11Z","git_url":"git://github.com/dmwm/WMCore.git","ssh_url":"git@github.com:dmwm/WMCore.git","clone_url":"https://github.com/dmwm/WMCore.git","svn_url":"https://github.com/dmwm/WMCore","homepage":"https://svnweb.cern.ch/trac/CMSDMWM/","size":61257,"stargazers_count":24,"watchers_count":24,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":43,"mirror_url":null,"open_issues_count":304,"forks":43,"open_issues":304,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dmwm/WMCore/pulls/5989"},"html":{"href":"https://github.com/dmwm/WMCore/pull/5989"},"issue":{"href":"https://api.github.com/repos/dmwm/WMCore/issues/5989"},"comments":{"href":"https://api.github.com/repos/dmwm/WMCore/issues/5989/comments"},"review_comments":{"href":"https://api.github.com/repos/dmwm/WMCore/pulls/5989/comments"},"review_comment":{"href":"https://api.github.com/repos/dmwm/WMCore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dmwm/WMCore/pulls/5989/commits"},"statuses":{"href":"https://api.github.com/repos/dmwm/WMCore/statuses/d2cef42e4ca553e9edf13badd8c3cb0323ecbb42"}}}}