summaryrefslogtreecommitdiffstats
path: root/fish/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fish/alloc.c')
-rw-r--r--fish/alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fish/alloc.c b/fish/alloc.c
index 594d0a56..9ef7b498 100644
--- a/fish/alloc.c
+++ b/fish/alloc.c
@@ -43,7 +43,7 @@ do_alloc (const char *cmd, int argc, char *argv[])
if (parse_size (argv[1], &size) == -1)
return -1;
- if (g_launched) {
+ if (!guestfs_is_config (g)) {
fprintf (stderr, "can't allocate or add disks after launching\n");
return -1;
}