Closed joshvote closed 10 years ago
Seems reasonable to me. The getenv('HOSTNAME') is just a default for non-PBS jobs, so if socket.gethostname() is more portable (which seems likely) this is fine. I have tried this out (the alternate ways of getting the hostname) on the NCI machines and the result is the same.
To merge this into develop I suggest: 1) switch your working dirctory to the develop branch with 'git checkout develop' 2) make sure develop is up to date with 'git pull' 3) merge in your change with 'git merge --no-ff ADGCJIRA-44-hostname' (the --no-ff forces a merge commit even though this is a fast-forward) 4) push the change to github with 'git push origin HEAD'
See https://govdex.gov.au/jira/browse/AGDCJIRA-44