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

rhbz#727563

Signed-off-by: Mike Burns <[email protected]>
---
 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

_______________________________________________
Ovirt-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/ovirt-devel

Reply via email to