Open yzach opened 9 years ago
@yzach, is it possible for you to provide more log information? There should be a log statement like Executing command <cmd> ...
.
@jfindlay Please see below
[INFO ] Executing command '"C:\Windows\System32\inetsrv\appcmd.exe" list APPPOOL' in directory 'C:\Users\yzach' [ERROR ] Command '"C:\Windows\System32\inetsrv\appcmd.exe" list APPPOOL' failed with return code: 1 [ERROR ] stderr: '"C:\Windows\System32\inetsrv\appcmd.exe"' is not recognized as an internal or external command, operable program or batch file. [ERROR ] retcode: 1 local: False
I did some investigation, it appears that python tries to execute the file C:\"C:\Windows\System32\inetsrv\appcmd.exe"
which apparently does not exists.
Further investigation showed that it is caused by a conflict of quoting in modules/iis.py and a later split in modules/cmdmod.py.
I managed to fix it by patching modules/iis.py#49 with the following line:
cmd_ret = __salt__['cmd.run_all']([appcmd, 'list', resource])
Should I submit a pull request?
@yzach, yes, that would be great, thanks.
I am trying to configure IIS on Windows 2012R2 x64 via
salt
. I downloaded and linkedsalt-contrib
. Now when I run:I am getting the following error
But when I am running
It displays the configured apppools.