[Ovirt-devel] [PATCH node] Change o-c-password to use the new storage check. #503993

Darryl L. Pierce dpierce at redhat.com
Mon Jun 8 17:59:34 UTC 2009


Signed-off-by: Darryl L. Pierce <dpierce at redhat.com>
---
 scripts/ovirt-config-password |    2 +-
 scripts/ovirt-functions       |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/scripts/ovirt-config-password b/scripts/ovirt-config-password
index 8b5bdca..03b41e1 100755
--- a/scripts/ovirt-config-password
+++ b/scripts/ovirt-config-password
@@ -10,7 +10,7 @@ trap 'exit $?' 1 2 13 15
 
 warn() { printf '%s\n' "$*" >&2; }
 
-if ! lvs HostVG/Config  >/dev/null 2>&1 ; then
+if ! is_local_storage_configured; then
     warn "Local storage must be configured prior to setting the administrator password."
     exit 99
 fi
diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions
index a692fc8..e938256 100755
--- a/scripts/ovirt-functions
+++ b/scripts/ovirt-functions
@@ -634,4 +634,3 @@ chkconfig_persist() {
 if [ "$(basename "$0")" = "ovirt-functions" ]; then
     "$@"
 fi
-
-- 
1.6.0.6




More information about the ovirt-devel mailing list