self.ipmiuser = ipmiuser or config.ipmi_user
self.ipmipass = ipmipass or config.ipmi_password
self.ipmidomain = ipmidomain or config.ipmi_domain
- self.has_credentials = all(map(
+ self.has_ipmi_credentials = all(map(
lambda x: x is not None,
[self.ipmiuser, self.ipmipass, self.ipmidomain]
))
def _check_credentials(self):
- if not self.has_credentials:
+ if not self.has_ipmi_credentials:
log.error(
"Must set ipmi_user, ipmi_password, and ipmi_domain in " \
".teuthology.yaml"
if not hasattr(remote.console, 'spawn_sol_log'):
log.debug("%s does not support IPMI; excluding",
remote.shortname)
- elif not remote.console.has_credentials:
+ elif not remote.console.has_ipmi_credentials:
log.debug("IPMI credentials not found for %s; excluding",
remote.shortname)
else:
task = self.klass(self.ctx, self.task_config)
assert task.enabled is False
- def test_has_credentials(self):
+ def test_has_ipmi_credentials(self):
for remote in self.ctx.cluster.remotes.keys():
- remote.console.has_credentials = False
+ remote.console.has_ipmi_credentials = False
task = self.klass(self.ctx, self.task_config)
assert len(task.cluster.remotes.keys()) == 0