We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71e0bdf commit a0f8950Copy full SHA for a0f8950
1 file changed
salt/utils/win_lgpo_reg.py
@@ -251,6 +251,17 @@ def write_reg_pol_data(
251
252
gpt_ini_path (str): The path to the gpt.ini file
253
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
265
Returns:
266
bool: True if successful
267
0 commit comments