{"action":"created","comment":{"url":"https://api.github.com/repos/Normation/rudder-techniques/pulls/comments/62590944","id":62590944,"diff_hunk":"@@ -98,15 +98,12 @@ bundle common def\n         string  => translatepath(\"${sys.workdir}/policy_server.dat\"),\n         comment => \"Path to file containing address to policy server\";\n \n-   # Use localhost as default policy_server if no policy_server.dat exists\n-    policy_server_set::\n+      # Use \"rudder\" as default policy_server if no policy_server.dat exists\n       \"policy_server\"\n-        string  => readfile(\"${policy_server_file}\", 2048),\n+        string  => ifelse(fileexists(\"${def.policy_server_file}\"),\n+                          readfile(\"${policy_server_file}\", 2048),","path":"techniques/system/common/1.0/cf-served.st","position":19,"original_position":19,"commit_id":"00bc1b85277f972546dab3df441860111db5cf5c","original_commit_id":"00bc1b85277f972546dab3df441860111db5cf5c","user":{"login":"jooooooon","id":93237,"avatar_url":"https://avatars.githubusercontent.com/u/93237?v=3","gravatar_id":"","url":"https://api.github.com/users/jooooooon","html_url":"https://github.com/jooooooon","followers_url":"https://api.github.com/users/jooooooon/followers","following_url":"https://api.github.com/users/jooooooon/following{/other_user}","gists_url":"https://api.github.com/users/jooooooon/gists{/gist_id}","starred_url":"https://api.github.com/users/jooooooon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jooooooon/subscriptions","organizations_url":"https://api.github.com/users/jooooooon/orgs","repos_url":"https://api.github.com/users/jooooooon/repos","events_url":"https://api.github.com/users/jooooooon/events{/privacy}","received_events_url":"https://api.github.com/users/jooooooon/received_events","type":"User","site_admin":false},"body":"No good reason. Both work since it's a local variable, but that is confusing. I'll fix it.","created_at":"2016-05-09T23:31:38Z","updated_at":"2016-05-09T23:31:38Z","html_url":"https://github.com/Normation/rudder-techniques/pull/918#discussion_r62590944","pull_request_url":"https://api.github.com/repos/Normation/rudder-techniques/pulls/918","_links":{"self":{"href":"https://api.github.com/repos/Normation/rudder-techniques/pulls/comments/62590944"},"html":{"href":"https://github.com/Normation/rudder-techniques/pull/918#discussion_r62590944"},"pull_request":{"href":"https://api.github.com/repos/Normation/rudder-techniques/pulls/918"}}},"pull_request":{"url":"https://api.github.com/repos/Normation/rudder-techniques/pulls/918","id":69330750,"html_url":"https://github.com/Normation/rudder-techniques/pull/918","diff_url":"https://github.com/Normation/rudder-techniques/pull/918.diff","patch_url":"https://github.com/Normation/rudder-techniques/pull/918.patch","issue_url":"https://api.github.com/repos/Normation/rudder-techniques/issues/918","number":918,"state":"open","locked":false,"title":"Fixes #7621: cf-promises can hang for about 30 seconds looking up default server name \\\"rudder\\\"","user":{"login":"jooooooon","id":93237,"avatar_url":"https://avatars.githubusercontent.com/u/93237?v=3","gravatar_id":"","url":"https://api.github.com/users/jooooooon","html_url":"https://github.com/jooooooon","followers_url":"https://api.github.com/users/jooooooon/followers","following_url":"https://api.github.com/users/jooooooon/following{/other_user}","gists_url":"https://api.github.com/users/jooooooon/gists{/gist_id}","starred_url":"https://api.github.com/users/jooooooon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jooooooon/subscriptions","organizations_url":"https://api.github.com/users/jooooooon/orgs","repos_url":"https://api.github.com/users/jooooooon/repos","events_url":"https://api.github.com/users/jooooooon/events{/privacy}","received_events_url":"https://api.github.com/users/jooooooon/received_events","type":"User","site_admin":false},"body":"https://www.rudder-project.org/redmine/issues/7621\n\nReplacing previous PR: https://github.com/Normation/rudder-techniques/pull/819\n","created_at":"2016-05-09T11:25:19Z","updated_at":"2016-05-09T23:31:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f6aaf451843295b451c84170afca4ef91c24e9dc","assignee":{"login":"peckpeck","id":7976666,"avatar_url":"https://avatars.githubusercontent.com/u/7976666?v=3","gravatar_id":"","url":"https://api.github.com/users/peckpeck","html_url":"https://github.com/peckpeck","followers_url":"https://api.github.com/users/peckpeck/followers","following_url":"https://api.github.com/users/peckpeck/following{/other_user}","gists_url":"https://api.github.com/users/peckpeck/gists{/gist_id}","starred_url":"https://api.github.com/users/peckpeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peckpeck/subscriptions","organizations_url":"https://api.github.com/users/peckpeck/orgs","repos_url":"https://api.github.com/users/peckpeck/repos","events_url":"https://api.github.com/users/peckpeck/events{/privacy}","received_events_url":"https://api.github.com/users/peckpeck/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Normation/rudder-techniques/pulls/918/commits","review_comments_url":"https://api.github.com/repos/Normation/rudder-techniques/pulls/918/comments","review_comment_url":"https://api.github.com/repos/Normation/rudder-techniques/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Normation/rudder-techniques/issues/918/comments","statuses_url":"https://api.github.com/repos/Normation/rudder-techniques/statuses/00bc1b85277f972546dab3df441860111db5cf5c","head":{"label":"jooooooon:bug_7621/cf_promises_can_hang_for_about_30_seconds_looking_up_default_server_name_rudder","ref":"bug_7621/cf_promises_can_hang_for_about_30_seconds_looking_up_default_server_name_rudder","sha":"00bc1b85277f972546dab3df441860111db5cf5c","user":{"login":"jooooooon","id":93237,"avatar_url":"https://avatars.githubusercontent.com/u/93237?v=3","gravatar_id":"","url":"https://api.github.com/users/jooooooon","html_url":"https://github.com/jooooooon","followers_url":"https://api.github.com/users/jooooooon/followers","following_url":"https://api.github.com/users/jooooooon/following{/other_user}","gists_url":"https://api.github.com/users/jooooooon/gists{/gist_id}","starred_url":"https://api.github.com/users/jooooooon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jooooooon/subscriptions","organizations_url":"https://api.github.com/users/jooooooon/orgs","repos_url":"https://api.github.com/users/jooooooon/repos","events_url":"https://api.github.com/users/jooooooon/events{/privacy}","received_events_url":"https://api.github.com/users/jooooooon/received_events","type":"User","site_admin":false},"repo":{"id":7056207,"name":"rudder-techniques","full_name":"jooooooon/rudder-techniques","owner":{"login":"jooooooon","id":93237,"avatar_url":"https://avatars.githubusercontent.com/u/93237?v=3","gravatar_id":"","url":"https://api.github.com/users/jooooooon","html_url":"https://github.com/jooooooon","followers_url":"https://api.github.com/users/jooooooon/followers","following_url":"https://api.github.com/users/jooooooon/following{/other_user}","gists_url":"https://api.github.com/users/jooooooon/gists{/gist_id}","starred_url":"https://api.github.com/users/jooooooon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jooooooon/subscriptions","organizations_url":"https://api.github.com/users/jooooooon/orgs","repos_url":"https://api.github.com/users/jooooooon/repos","events_url":"https://api.github.com/users/jooooooon/events{/privacy}","received_events_url":"https://api.github.com/users/jooooooon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jooooooon/rudder-techniques","description":"","fork":true,"url":"https://api.github.com/repos/jooooooon/rudder-techniques","forks_url":"https://api.github.com/repos/jooooooon/rudder-techniques/forks","keys_url":"https://api.github.com/repos/jooooooon/rudder-techniques/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jooooooon/rudder-techniques/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jooooooon/rudder-techniques/teams","hooks_url":"https://api.github.com/repos/jooooooon/rudder-techniques/hooks","issue_events_url":"https://api.github.com/repos/jooooooon/rudder-techniques/issues/events{/number}","events_url":"https://api.github.com/repos/jooooooon/rudder-techniques/events","assignees_url":"https://api.github.com/repos/jooooooon/rudder-techniques/assignees{/user}","branches_url":"https://api.github.com/repos/jooooooon/rudder-techniques/branches{/branch}","tags_url":"https://api.github.com/repos/jooooooon/rudder-techniques/tags","blobs_url":"https://api.github.com/repos/jooooooon/rudder-techniques/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jooooooon/rudder-techniques/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jooooooon/rudder-techniques/git/refs{/sha}","trees_url":"https://api.github.com/repos/jooooooon/rudder-techniques/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jooooooon/rudder-techniques/statuses/{sha}","languages_url":"https://api.github.com/repos/jooooooon/rudder-techniques/languages","stargazers_url":"https://api.github.com/repos/jooooooon/rudder-techniques/stargazers","contributors_url":"https://api.github.com/repos/jooooooon/rudder-techniques/contributors","subscribers_url":"https://api.github.com/repos/jooooooon/rudder-techniques/subscribers","subscription_url":"https://api.github.com/repos/jooooooon/rudder-techniques/subscription","commits_url":"https://api.github.com/repos/jooooooon/rudder-techniques/commits{/sha}","git_commits_url":"https://api.github.com/repos/jooooooon/rudder-techniques/git/commits{/sha}","comments_url":"https://api.github.com/repos/jooooooon/rudder-techniques/comments{/number}","issue_comment_url":"https://api.github.com/repos/jooooooon/rudder-techniques/issues/comments{/number}","contents_url":"https://api.github.com/repos/jooooooon/rudder-techniques/contents/{+path}","compare_url":"https://api.github.com/repos/jooooooon/rudder-techniques/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jooooooon/rudder-techniques/merges","archive_url":"https://api.github.com/repos/jooooooon/rudder-techniques/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jooooooon/rudder-techniques/downloads","issues_url":"https://api.github.com/repos/jooooooon/rudder-techniques/issues{/number}","pulls_url":"https://api.github.com/repos/jooooooon/rudder-techniques/pulls{/number}","milestones_url":"https://api.github.com/repos/jooooooon/rudder-techniques/milestones{/number}","notifications_url":"https://api.github.com/repos/jooooooon/rudder-techniques/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jooooooon/rudder-techniques/labels{/name}","releases_url":"https://api.github.com/repos/jooooooon/rudder-techniques/releases{/id}","deployments_url":"https://api.github.com/repos/jooooooon/rudder-techniques/deployments","created_at":"2012-12-07T16:27:34Z","updated_at":"2014-06-20T17:28:12Z","pushed_at":"2016-05-09T22:50:35Z","git_url":"git://github.com/jooooooon/rudder-techniques.git","ssh_url":"git@github.com:jooooooon/rudder-techniques.git","clone_url":"https://github.com/jooooooon/rudder-techniques.git","svn_url":"https://github.com/jooooooon/rudder-techniques","homepage":"http://www.rudder-project.org/","size":47285,"stargazers_count":0,"watchers_count":0,"language":"Smalltalk","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"Normation:branches/rudder/3.1","ref":"branches/rudder/3.1","sha":"a47eea868ce8a5ded9a1edda89b9b77cacd22045","user":{"login":"Normation","id":695105,"avatar_url":"https://avatars.githubusercontent.com/u/695105?v=3","gravatar_id":"","url":"https://api.github.com/users/Normation","html_url":"https://github.com/Normation","followers_url":"https://api.github.com/users/Normation/followers","following_url":"https://api.github.com/users/Normation/following{/other_user}","gists_url":"https://api.github.com/users/Normation/gists{/gist_id}","starred_url":"https://api.github.com/users/Normation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Normation/subscriptions","organizations_url":"https://api.github.com/users/Normation/orgs","repos_url":"https://api.github.com/users/Normation/repos","events_url":"https://api.github.com/users/Normation/events{/privacy}","received_events_url":"https://api.github.com/users/Normation/received_events","type":"Organization","site_admin":false},"repo":{"id":2528259,"name":"rudder-techniques","full_name":"Normation/rudder-techniques","owner":{"login":"Normation","id":695105,"avatar_url":"https://avatars.githubusercontent.com/u/695105?v=3","gravatar_id":"","url":"https://api.github.com/users/Normation","html_url":"https://github.com/Normation","followers_url":"https://api.github.com/users/Normation/followers","following_url":"https://api.github.com/users/Normation/following{/other_user}","gists_url":"https://api.github.com/users/Normation/gists{/gist_id}","starred_url":"https://api.github.com/users/Normation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Normation/subscriptions","organizations_url":"https://api.github.com/users/Normation/orgs","repos_url":"https://api.github.com/users/Normation/repos","events_url":"https://api.github.com/users/Normation/events{/privacy}","received_events_url":"https://api.github.com/users/Normation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Normation/rudder-techniques","description":"","fork":false,"url":"https://api.github.com/repos/Normation/rudder-techniques","forks_url":"https://api.github.com/repos/Normation/rudder-techniques/forks","keys_url":"https://api.github.com/repos/Normation/rudder-techniques/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Normation/rudder-techniques/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Normation/rudder-techniques/teams","hooks_url":"https://api.github.com/repos/Normation/rudder-techniques/hooks","issue_events_url":"https://api.github.com/repos/Normation/rudder-techniques/issues/events{/number}","events_url":"https://api.github.com/repos/Normation/rudder-techniques/events","assignees_url":"https://api.github.com/repos/Normation/rudder-techniques/assignees{/user}","branches_url":"https://api.github.com/repos/Normation/rudder-techniques/branches{/branch}","tags_url":"https://api.github.com/repos/Normation/rudder-techniques/tags","blobs_url":"https://api.github.com/repos/Normation/rudder-techniques/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Normation/rudder-techniques/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Normation/rudder-techniques/git/refs{/sha}","trees_url":"https://api.github.com/repos/Normation/rudder-techniques/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Normation/rudder-techniques/statuses/{sha}","languages_url":"https://api.github.com/repos/Normation/rudder-techniques/languages","stargazers_url":"https://api.github.com/repos/Normation/rudder-techniques/stargazers","contributors_url":"https://api.github.com/repos/Normation/rudder-techniques/contributors","subscribers_url":"https://api.github.com/repos/Normation/rudder-techniques/subscribers","subscription_url":"https://api.github.com/repos/Normation/rudder-techniques/subscription","commits_url":"https://api.github.com/repos/Normation/rudder-techniques/commits{/sha}","git_commits_url":"https://api.github.com/repos/Normation/rudder-techniques/git/commits{/sha}","comments_url":"https://api.github.com/repos/Normation/rudder-techniques/comments{/number}","issue_comment_url":"https://api.github.com/repos/Normation/rudder-techniques/issues/comments{/number}","contents_url":"https://api.github.com/repos/Normation/rudder-techniques/contents/{+path}","compare_url":"https://api.github.com/repos/Normation/rudder-techniques/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Normation/rudder-techniques/merges","archive_url":"https://api.github.com/repos/Normation/rudder-techniques/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Normation/rudder-techniques/downloads","issues_url":"https://api.github.com/repos/Normation/rudder-techniques/issues{/number}","pulls_url":"https://api.github.com/repos/Normation/rudder-techniques/pulls{/number}","milestones_url":"https://api.github.com/repos/Normation/rudder-techniques/milestones{/number}","notifications_url":"https://api.github.com/repos/Normation/rudder-techniques/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Normation/rudder-techniques/labels{/name}","releases_url":"https://api.github.com/repos/Normation/rudder-techniques/releases{/id}","deployments_url":"https://api.github.com/repos/Normation/rudder-techniques/deployments","created_at":"2011-10-06T19:28:53Z","updated_at":"2015-11-20T16:01:31Z","pushed_at":"2016-05-09T22:50:37Z","git_url":"git://github.com/Normation/rudder-techniques.git","ssh_url":"git@github.com:Normation/rudder-techniques.git","clone_url":"https://github.com/Normation/rudder-techniques.git","svn_url":"https://github.com/Normation/rudder-techniques","homepage":"http://www.rudder-project.org/","size":46805,"stargazers_count":8,"watchers_count":8,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":16,"forks":14,"open_issues":16,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Normation/rudder-techniques/pulls/918"},"html":{"href":"https://github.com/Normation/rudder-techniques/pull/918"},"issue":{"href":"https://api.github.com/repos/Normation/rudder-techniques/issues/918"},"comments":{"href":"https://api.github.com/repos/Normation/rudder-techniques/issues/918/comments"},"review_comments":{"href":"https://api.github.com/repos/Normation/rudder-techniques/pulls/918/comments"},"review_comment":{"href":"https://api.github.com/repos/Normation/rudder-techniques/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Normation/rudder-techniques/pulls/918/commits"},"statuses":{"href":"https://api.github.com/repos/Normation/rudder-techniques/statuses/00bc1b85277f972546dab3df441860111db5cf5c"}}}}