summaryrefslogtreecommitdiff
path: root/morphlib/exts/ssh-rsync.check
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/exts/ssh-rsync.check')
-rwxr-xr-xmorphlib/exts/ssh-rsync.check7
1 files changed, 6 insertions, 1 deletions
diff --git a/morphlib/exts/ssh-rsync.check b/morphlib/exts/ssh-rsync.check
index 6a776ce9..11446c28 100755
--- a/morphlib/exts/ssh-rsync.check
+++ b/morphlib/exts/ssh-rsync.check
@@ -18,8 +18,9 @@
import cliapp
-import morphlib.writeexts
+import os
+import morphlib.writeexts
class SshRsyncCheckExtension(morphlib.writeexts.WriteExtension):
def process_args(self, args):
@@ -33,6 +34,10 @@ class SshRsyncCheckExtension(morphlib.writeexts.WriteExtension):
'Baserock machines. It cannot be used for an initial '
'deployment.')
+ if os.environ.get('VERSION_LABEL', '') == '':
+ raise cliapp.AppException(
+ 'A VERSION_LABEL must be set when deploying an upgrade.')
+
location = args[0]
self.check_ssh_connectivity(location)
self.check_is_baserock_system(location)