return int(str)
return default
except ValueError:
- raise LconfError("text value is not integer:", str)
+ raise Lustre.LconfError("text value is not integer: " + str)
def get_first_ref(self, tag):
""" Get the first uuidref of the type TAG. Only
node_db = self.lookup_name(node_name)
if not node_db:
return None
- return self.get_tgt_dev(target_uuid)
+ return node_db.get_tgt_dev(target_uuid)
# get all network uuids for this node
def get_networks(self):
return ret
def _update_active(self, tgt, new):
- raise LconfError("updates not implemented for XML")
+ raise Lustre.LconfError("updates not implemented for XML")
# ================================================================
# LDAP Support
parent = None,
url = "ldap://localhost",
user = "cn=Manager, fs=lustre",
- pw = "secret"
+ pw = ""
):
self._name = name
self._attrs = attrs