Skip to content

Commit a0f8950

Browse files
committed
Add docs for new parameters
1 parent 71e0bdf commit a0f8950

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

salt/utils/win_lgpo_reg.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,17 @@ def write_reg_pol_data(
251251
252252
gpt_ini_path (str): The path to the gpt.ini file
253253
254+
retry_count (int): Number of attempts to make when a write fails due
255+
to a sharing violation (``winerror 32``). Sharing violations occur
256+
when a process such as an antivirus scanner or VSS holds the file
257+
open with an incompatible sharing mode. The GP critical section
258+
(see :func:`_policy_lock`) prevents races with ``gpsvc`` itself,
259+
so retries are primarily a fallback for those other lockers.
260+
Default is ``10``.
261+
262+
retry_delay (int): Seconds to wait between retry attempts when a
263+
sharing violation is encountered. Default is ``5``.
264+
254265
Returns:
255266
bool: True if successful
256267

0 commit comments

Comments
 (0)