diff options
author | Mike Gerdts <mike.gerdts@joyent.com> | 2018-04-20 20:56:36 -0400 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2018-04-20 20:56:36 -0400 |
commit | 23479881f51bae7a3f5743ce677ed82317ea8b9f (patch) | |
tree | da5c9a7e945ab0b1da57eeee31c9df5e25db04a3 /setup.py | |
parent | 8e111502a0f9d437ff6045f1269c95e5756fc43b (diff) | |
download | vyos-cloud-init-23479881f51bae7a3f5743ce677ed82317ea8b9f.tar.gz vyos-cloud-init-23479881f51bae7a3f5743ce677ed82317ea8b9f.zip |
DataSourceSmartOS: sdc:hostname is ignored
There are three potential sources of the hostname, one of which is
documented SmartOS's vmadm(1M) via the hostname property. That
property's value is retrieved via the sdc:hostname key. The other
two sources for the hostname are a hostname key in customer_metadata
and the VM's uuid (sdc:uuid). Of these three, the sdc:hostname value
is not used in a meaningful way by DataSourceSmartOS.
This fix changes the fallback mechanism when hostname is not
specified in customer_metadata. The order of precedence for setting
the hostname is now 1) hostname in customer_metadata,
2) sdc:hostname, then 3) sdc:uuid.
LP: #1765085
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions