This can now come from host properties, or failing that we use
ADMIN/ADMIN which seems common.

No functional change with working existing configs.

Signed-off-by: Ian Jackson <[email protected]>
---
 Osstest/PDU/ipmi.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Osstest/PDU/ipmi.pm b/Osstest/PDU/ipmi.pm
index 0cbc5b9..dbf211f 100644
--- a/Osstest/PDU/ipmi.pm
+++ b/Osstest/PDU/ipmi.pm
@@ -36,6 +36,8 @@ BEGIN {
 
 sub new {
     my ($class, $ho, $methname, $mgmt, $user, $pass, @opts) = @_;
+    $user ||= get_host_property($ho, 'IpmiUser') || 'ADMIN';
+    $pass ||= get_host_property($ho, 'IpmiPassword') || 'ADMIN';
     return bless { Host => $ho,
                   Mgmt => $mgmt,
                   User => $user,
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to