get_hostname on DataSourceAzure fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Undecided
|
Douglas Jordan |
Bug Description
$ python3 -c "from cloudinit.
Traceback (most recent call last):
File "/home/
env=env, shell=shell)
File "/usr/lib/
restore_
File "/usr/lib/
raise child_exception
FileNotFoundError: [Errno 2] No such file or directory: b'h'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/
return util.subp(
File "/home/
stderr="-" if decode else b"-")
cloudinit.
Command: hostname
Exit code: -
Reason: [Errno 2] No such file or directory: b'h'
Stdout: -
Stderr: -
This is on latest master (commit 1e2e810f3f7cb6a
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Chad Smith: Approve
-
Diff: 38 lines (+17/-0)2 files modifiedcloudinit/sources/DataSourceAzure.py (+2/-0)
tests/unittests/test_datasource/test_azure.py (+15/-0)
Changed in cloud-init: | |
assignee: | nobody → Douglas Jordan (dojordan) |
status: | New → Fix Committed |
fix released in Bionic cloud-init rev cloud-init- 18.1-10- gf891df34