From f77f7578939189ff1ee61a449c24c36d89153365 Mon Sep 17 00:00:00 2001 From: Hashim Khan Date: Mon, 27 Jul 2026 18:55:35 +0500 Subject: [PATCH] Fix typo in file.directory clean example docs Correct "crete" to "create" in the file.directory docstring example. Fixes #68316 --- changelog/68316.fixed.md | 1 + salt/states/file.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog/68316.fixed.md diff --git a/changelog/68316.fixed.md b/changelog/68316.fixed.md new file mode 100644 index 000000000000..b94dad11dd71 --- /dev/null +++ b/changelog/68316.fixed.md @@ -0,0 +1 @@ +Fixed typo in ``file.directory`` docs: "will crete the file" -> "will create the file". diff --git a/salt/states/file.py b/salt/states/file.py index 96bc5cab9141..281e0cb9b45a 100644 --- a/salt/states/file.py +++ b/salt/states/file.py @@ -3797,7 +3797,7 @@ def directory( Because ``cmd.run`` has no way of communicating that it's creating a file, ``will_always_clean`` will remove the newly created file. Of course, every time the states run the same thing will happen - the - ``silly_way_of_creating_a_file`` will crete the file and + ``silly_way_of_creating_a_file`` will create the file and ``will_always_clean`` will always remove it. Over and over again, no matter how many times you run it.