We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2740715 commit 76cd883Copy full SHA for 76cd883
1 file changed
sourceosctl/commands/agent_machine.py
@@ -297,6 +297,10 @@ def mounts_init(args) -> int:
297
execute = bool(getattr(args, "execute", False))
298
policy_ok = bool(getattr(args, "policy_ok", False))
299
300
+ if getattr(args, "dry_run", True) is False and not execute:
301
+ print("error: non-dry-run mount initialization requires --execute", file=sys.stderr)
302
+ return 1
303
+
304
plan = _build_mount_plan(args)
305
plan["operation"] = "init"
306
errors = _validate_mount_plan(plan)
0 commit comments