summaryrefslogtreecommitdiffstats
path: root/cobbler/modules/cli_profile.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/modules/cli_profile.py')
-rw-r--r--cobbler/modules/cli_profile.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cobbler/modules/cli_profile.py b/cobbler/modules/cli_profile.py
index 1ae4d9a9..c538e898 100644
--- a/cobbler/modules/cli_profile.py
+++ b/cobbler/modules/cli_profile.py
@@ -49,7 +49,8 @@ class ProfileFunction(commands.CobblerFunction):
p.add_option("--kickstart", dest="kickstart", help="absolute path to kickstart template (RECOMMENDED)")
p.add_option("--ksmeta", dest="ksmeta", help="ex: 'blippy=7'")
p.add_option("--kopts", dest="kopts", help="ex: 'noipv6'")
- p.add_option("--in-place",action="store_true", dest="inplace", default=False, help="edit items in kopts or ksmeta without clearing the other items")
+ if not self.matches_args(args,["find"]):
+ p.add_option("--in-place",action="store_true", dest="inplace", default=False, help="edit items in kopts or ksmeta without clearing the other items")
p.add_option("--name", dest="name", help="a name for the profile (REQUIRED)")