Revision b705c7a6 lib/backend.py
b/lib/backend.py | ||
---|---|---|
490 | 490 |
|
491 | 491 |
""" |
492 | 492 |
result = {} |
493 |
my_name = netutils.HostInfo().name
|
|
493 |
my_name = netutils.Hostname.GetSysName()
|
|
494 | 494 |
port = netutils.GetDaemonPort(constants.NODED) |
495 | 495 |
|
496 | 496 |
if constants.NV_HYPERVISOR in what: |
... | ... | |
2595 | 2595 |
|
2596 | 2596 |
""" |
2597 | 2597 |
(key_pem, cert_pem) = \ |
2598 |
utils.GenerateSelfSignedX509Cert(netutils.HostInfo.SysName(),
|
|
2598 |
utils.GenerateSelfSignedX509Cert(netutils.Hostname.GetSysName(),
|
|
2599 | 2599 |
min(validity, _MAX_SSL_CERT_VALIDITY)) |
2600 | 2600 |
|
2601 | 2601 |
cert_dir = tempfile.mkdtemp(dir=cryptodir, |
... | ... | |
2938 | 2938 |
|
2939 | 2939 |
""" |
2940 | 2940 |
# set the correct physical ID |
2941 |
my_name = netutils.HostInfo().name
|
|
2941 |
my_name = netutils.Hostname.GetSysName()
|
|
2942 | 2942 |
for cf in disks: |
2943 | 2943 |
cf.SetPhysicalID(my_name, nodes_ip) |
2944 | 2944 |
|
Also available in: Unified diff