aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hydractl/system-upgrade4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/hydractl/system-upgrade b/share/hydractl/system-upgrade
index 6132e98..51df318 100755
--- a/share/hydractl/system-upgrade
+++ b/share/hydractl/system-upgrade
@@ -46,7 +46,7 @@ function hydra_system_upgrade_env {
nextrelease="`hydra_next_debian_release $release`"
# Is a virtual machine?
- virtual="`facter 2> /dev/null | grep virtual | sed -e 's/virtual => //'`"
+ virtual="`facter 2> /dev/null | grep virtual | grep -v '^is_virtual' | sed -e 's/virtual => //'`"
# Save environment
echo "release=$release" > $ENV
@@ -125,7 +125,7 @@ else
# Restore environment
if [ -e "$ENV" ]; then
source $ENV
- hydra_system_upgrade_$STATE
+ hydra_system_upgrade_$STAGE
fi
fi