X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fomf_resctl.py;h=bd09c05be47c7a645653d1fb9acd770cf7a8a564;hb=f18f7cd6e1e79a1f30f49e5802820eca6fb16c1d;hp=b8b5e16a7123334830fe471eb2c558f051ec8e70;hpb=a9f1ca199bbdd4cd8cc4e3d0df0c0ea5826462fc;p=nodemanager.git diff --git a/plugins/omf_resctl.py b/plugins/omf_resctl.py index b8b5e16..bd09c05 100644 --- a/plugins/omf_resctl.py +++ b/plugins/omf_resctl.py @@ -32,8 +32,12 @@ def GetSlivers(data, conf = None, plc = None): # xxx might need to clean up more deeply.. return + # as hrn is set only at AddNode-time, upgraded myplcs might still miss this + # clue: just overwrite the hostname of all nodes + # for node in GetNodes(): UpdateNode(node['node_id'],{'hostname':node['hostname']}) try: node_hrn = data['hrn'] + if not hrn: raise Exception,"Empty hrn" except: node_hrn='default # Failed to read hrn from GetSlivers, please upgrade PLCAPI'