Skip to content

Commit 6795a56

Browse files
committed
Fixing issues for canary feature in winodws
1 parent 5946843 commit 6795a56

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hubblestack/extmods/modules/win_pulsar.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def canary(change_file=None):
234234
conf_dir = os.path.dirname(__opts__['conf_file'])
235235
change_file = os.path.join(conf_dir, 'fim_canary.tmp')
236236
__salt__['file.touch'](change_file)
237-
__salt__['file.remove'](change_file)
237+
os.remove(change_file)
238238

239239

240240
def _check_acl(path, mask, wtype, recurse):
@@ -245,6 +245,7 @@ def _check_acl(path, mask, wtype, recurse):
245245
else:
246246
wtype = [wtype]
247247

248+
path = "'" + path + "'"
248249
audit_acl = __salt__['cmd.run']('(Get-Acl {0} -Audit).Audit | fl'.format(path), shell='powershell',
249250
python_shell=True)
250251
if not audit_acl:

0 commit comments

Comments
 (0)