summaryrefslogtreecommitdiffstats
path: root/cobbler/cobbler.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/cobbler.py')
-rwxr-xr-xcobbler/cobbler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/cobbler.py b/cobbler/cobbler.py
index 1be8e26..90f148d 100755
--- a/cobbler/cobbler.py
+++ b/cobbler/cobbler.py
@@ -297,7 +297,7 @@ class BootCLI:
Sync the config file with the system config: 'cobbler sync [--dryrun]'
"""
status = None
- if args is not None and "--dryrun" in args:
+ if args is not None and ("--dryrun" in args or "-n" in args):
status = self.api.sync(dryrun=True)
else:
status = self.api.sync(dryrun=False)