mcst-linux-kernel/patches-2024.06.26/lxd-3.0.0/0031-lxc-init-Add-missing-n...

40 lines
1.7 KiB
Diff

From f3f87ac998376a9fd18ff26cffeab80ec4289d23 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber@ubuntu.com>
Date: Tue, 10 Apr 2018 00:41:46 +0200
Subject: lxc/init: Add missing --no-profiles
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
---
lxc/copy.go | 2 +-
lxc/init.go | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/lxc/copy.go b/lxc/copy.go
index 6ad33550..b3836e1e 100644
--- a/lxc/copy.go
+++ b/lxc/copy.go
@@ -43,7 +43,7 @@ func (c *cmdCopy) Command() *cobra.Command {
cmd.Flags().BoolVar(&c.flagContainerOnly, "container-only", false, i18n.G("Copy the container without its snapshots"))
cmd.Flags().BoolVar(&c.flagStateless, "stateless", false, i18n.G("Copy a stateful container stateless"))
cmd.Flags().StringVar(&c.flagTarget, "target", "", i18n.G("Cluster member name")+"``")
- cmd.Flags().BoolVar(&c.flagNoProfiles, "no-profiles", false, "Create the container with no profiles applied")
+ cmd.Flags().BoolVar(&c.flagNoProfiles, "no-profiles", false, i18n.G("Create the container with no profiles applied"))
return cmd
}
diff --git a/lxc/init.go b/lxc/init.go
index 4c965c59..755b0c44 100644
--- a/lxc/init.go
+++ b/lxc/init.go
@@ -46,6 +46,7 @@ func (c *cmdInit) Command() *cobra.Command {
cmd.Flags().StringVarP(&c.flagStorage, "storage", "s", "", i18n.G("Storage pool name")+"``")
cmd.Flags().StringVarP(&c.flagType, "type", "t", "", i18n.G("Instance type")+"``")
cmd.Flags().StringVar(&c.flagTarget, "target", "", i18n.G("Cluster member name")+"``")
+ cmd.Flags().BoolVar(&c.flagNoProfiles, "no-profiles", false, i18n.G("Create the container with no profiles applied"))
return cmd
}