Signed-off-by: Alex Jia <ajia(a)redhat.com>
---
bin/virt-sandbox-service | 3 +++
1 file changed, 3 insertions(+)
diff --git a/bin/virt-sandbox-service b/bin/virt-sandbox-service
index 26b4a40..cb40f6a 100755
--- a/bin/virt-sandbox-service
+++ b/bin/virt-sandbox-service
@@ -965,6 +965,9 @@ def upgrade_config(args):
configfile = get_legacy_config_path(args.name)
if os.path.exists(configfile):
upgrade_config_legacy(configfile)
+ else:
+ sys.stderr.write("No legacy '%s' configuration\n" % args.name)
+ sys.exit(1)
def upgrade_filesystem(args):
--
1.8.3.1