Code Review
/
ta
/
config-manager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
add localstorage label handling
[ta/config-manager.git]
/
cmdatahandlers
/
src
/
cmdatahandlers
/
api
/
utils.py
diff --git
a/cmdatahandlers/src/cmdatahandlers/api/utils.py
b/cmdatahandlers/src/cmdatahandlers/api/utils.py
index
5e15a46
..
590d3e3
100644
(file)
--- a/
cmdatahandlers/src/cmdatahandlers/api/utils.py
+++ b/
cmdatahandlers/src/cmdatahandlers/api/utils.py
@@
-133,6
+133,13
@@
def is_virtualized():
return True
return False
return True
return False
+def get_installation_host_name(hostsconf):
+ hostname = 'controller-1'
+ if not is_virtualized():
+ ownip = get_own_hwmgmt_ip()
+ hostname = hostsconf.get_host_having_hwmgmt_address(ownip)
+ return hostname
+
def flatten_config_data(jsondata):
result = {}
for key, value in jsondata.iteritems():
def flatten_config_data(jsondata):
result = {}
for key, value in jsondata.iteritems():