We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bef4ccf + e58119e commit cf6f9ecCopy full SHA for cf6f9ec
tribits/ci_support/CheckinTest.py
@@ -158,7 +158,19 @@ def getExtraCommandOutputFileName():
158
159
160
def getHostname():
161
- return getCmndOutput("hostname", True)
+ hostname = ""
162
+ try:
163
+ hostname = getCmndOutput("hostname", True)
164
+ except Exception:
165
+ pass
166
+ if hostname == "":
167
168
+ if os.path.exists("/etc/hostname"):
169
+ with open("/etc/hostname", "r") as f:
170
+ hostname = f.read().strip()
171
172
173
+ return hostname
174
175
176
def getEmailAddressesSpaceString(emailAddressesCommasStr):
0 commit comments