{"action":"created","issue":{"url":"https://api.github.com/repos/projectatomic/atomicapp/issues/658","repository_url":"https://api.github.com/repos/projectatomic/atomicapp","labels_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/658/labels{/name}","comments_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/658/comments","events_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/658/events","html_url":"https://github.com/projectatomic/atomicapp/pull/658","id":144953508,"number":658,"title":"Util to gather what user is running Atomic App and which home dir it should use","user":{"login":"cdrage","id":6422176,"avatar_url":"https://avatars.githubusercontent.com/u/6422176?v=3","gravatar_id":"","url":"https://api.github.com/users/cdrage","html_url":"https://github.com/cdrage","followers_url":"https://api.github.com/users/cdrage/followers","following_url":"https://api.github.com/users/cdrage/following{/other_user}","gists_url":"https://api.github.com/users/cdrage/gists{/gist_id}","starred_url":"https://api.github.com/users/cdrage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdrage/subscriptions","organizations_url":"https://api.github.com/users/cdrage/orgs","repos_url":"https://api.github.com/users/cdrage/repos","events_url":"https://api.github.com/users/cdrage/events{/privacy}","received_events_url":"https://api.github.com/users/cdrage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-31T16:43:02Z","updated_at":"2016-04-04T19:23:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/projectatomic/atomicapp/pulls/658","html_url":"https://github.com/projectatomic/atomicapp/pull/658","diff_url":"https://github.com/projectatomic/atomicapp/pull/658.diff","patch_url":"https://github.com/projectatomic/atomicapp/pull/658.patch"},"body":"This call finds out what user is running the Atomic App.\n\nWhether they are:\n  sudo\n  root\n  user\n\nIf it is running under sudo, this util will find the user running the\nsudo command.\n\nOnce the user is found, os.path.expanduser(user) is utilized to find the\nhome directory. If a home directory is not found atomic app will error\nout.\n\nFixes https://github.com/projectatomic/atomicapp/issues/656\n\nThis util will be used to implement default config locations for OpenShift and k8s providers."},"comment":{"url":"https://api.github.com/repos/projectatomic/atomicapp/issues/comments/205456359","html_url":"https://github.com/projectatomic/atomicapp/pull/658#issuecomment-205456359","issue_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/658","id":205456359,"user":{"login":"dustymabe","id":4530030,"avatar_url":"https://avatars.githubusercontent.com/u/4530030?v=3","gravatar_id":"","url":"https://api.github.com/users/dustymabe","html_url":"https://github.com/dustymabe","followers_url":"https://api.github.com/users/dustymabe/followers","following_url":"https://api.github.com/users/dustymabe/following{/other_user}","gists_url":"https://api.github.com/users/dustymabe/gists{/gist_id}","starred_url":"https://api.github.com/users/dustymabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dustymabe/subscriptions","organizations_url":"https://api.github.com/users/dustymabe/orgs","repos_url":"https://api.github.com/users/dustymabe/repos","events_url":"https://api.github.com/users/dustymabe/events{/privacy}","received_events_url":"https://api.github.com/users/dustymabe/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T19:23:40Z","updated_at":"2016-04-04T19:23:40Z","body":"Also it would be cool to have the part that figures out what \"user\" we are as part of a separate function that is called from getUserHome(). I can see that being used in other places. "}}