conga/luci/site/luci/Extensions homebase_adapt ...
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2006-06-27 20:47:35
Modified files:
luci/site/luci/Extensions: homebase_adapters.py
Log message:
fix adding hosts in clusters, use user-supplied hostname instead of the one ricci returns
luci/site/luci/Extensions/homebase_adapters.py +9 -9
@@ -611,9 +611,9 @@ except: return 'Unable to authenticate to the ricci agent on \"' + host + '\"' - rhost = rc.system_name() - if rhost and rhost != host: - host = rhost +# rhost = rc.system_name() +# if rhost and rhost != host: +# host = rhost try: exists = self.restrictedTraverse(PLONE_ROOT +'/systems/storage/' + host)
@@ -641,9 +641,9 @@ except: return 'Unable to set permissions on new system \"' + host + '\"' - cluster_info = rc.cluster_info() - if cluster_info[0] != '': - raise InCluster, host +# cluster_info = rc.cluster_info() +# if cluster_info[0] != '': +# raise InCluster, host def createCluster(self, clusterName):
@@ -691,9 +691,9 @@ if i != True: return 'Authentication for host \"' + host + '\" failed' - rhost = rc.system_name() - if rhost and rhost != host: - host = rhost +# rhost = rc.system_name() +# if rhost and rhost != host: +# host = rhost cluster_info = rc.cluster_info() if len(cluster_info) > 0 and cluster_info[0] != '' and cluster_info[0] != cluster: