[Ovirt-devel] [PATCH node] set admin password if rootpw provided

Mike Burns mburns at redhat.com
Mon Aug 8 18:14:14 UTC 2011


In the case where only rootpw is provided, default adminpw to the
value of rootpw

rhbz#727563

Signed-off-by: Mike Burns <mburns at redhat.com>
---
 scripts/ovirt-early |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/scripts/ovirt-early b/scripts/ovirt-early
index 568c987..fa24720 100755
--- a/scripts/ovirt-early
+++ b/scripts/ovirt-early
@@ -502,6 +502,9 @@ start_ovirt_early () {
             ;;
             rootpw=*)
             rootpw=${i#rootpw=}
+            if [ -z "$adminpw" ]; then
+                adminpw=$rootpw
+            fi
             ;;
             snmp_password=*)
             snmp_password=${i#snmp_password=}
-- 
1.7.6




More information about the ovirt-devel mailing list