Traceback (most recent call last):


 "C:\salt\bin\lib\site-packages\salt\cli\caller.py", line 197, in call

ret['return'] = func(*args, **kwargs)


 "C:\salt\bin\lib\site-packages\salt\modules\postgres.py", line 551, in db_create

password=password, runas=runas)


 "C:\salt\bin\lib\site-packages\salt\modules\postgres.py", line 364, in _psql_prepare_and_run

rcmd, runas=runas, password=password, host=host, port=port, user=user)


 "C:\salt\bin\lib\site-packages\salt\modules\postgres.py", line 181, in _run_psql

ret = __salt__['cmd.run_all'](cmd, python_shell=False, **kwargs)


 "C:\salt\bin\lib\site-packages\salt\modules\cmdmod.py", line 1654, in run_all

**kwargs)


 "C:\salt\bin\lib\site-packages\salt\modules\cmdmod.py", line 375, in _run

raise CommandExecutionError(msg)
CommandExecutionError: password is a required argument for runas on Windows


Comment: An exception occurred in this state: Traceback (most recent call last):

 "c:\salt\bin\lib\site-packages\salt\state.py", line 1733, in call
**cdata['kwargs'])

 "c:\salt\bin\lib\site-packages\salt\loader.py", line 1651, in wrapper
return f(*args, **kwargs)

 "c:\salt\bin\lib\site-packages\salt\states\chocolatey.py", line 85, in installed
if name not in __salt__['cmd.run']('choco list --local-only'):

 "c:\salt\bin\lib\site-packages\salt\modules\cmdmod.py", line 852, in run
bg=bg)

 "c:\salt\bin\lib\site-packages\salt\modules\cmdmod.py", line 475, in _run
'reason: {2}'.format(cmd, kwargs, exc)
CommandExecutionError: Unable to run command '['choco', 'list', '--local-only']' with the context '{'timeout': None, 'with_communicate': True, 'shell': False, 'bg': False, 'stderr': -2, 'env': {'TMP': 'C:\\Windows\\TEMP', 'COMPUTERNAME': 'WIN-K4Q69V088IO', 'USERDOMAIN': 'WORKGROUP', 'PSMODULEPATH': 'C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\', 'COMMONPROGRAMFILES': 'C:\\Program 
s\\Common 
s', 'PROCESSOR_IDENTIFIER': 'Intel64 Family 6 Model 70 Stepping 1, GenuineIntel', 'PROGRAMFILES': 'C:\\Program 
s', 'PROCESSOR_REVISION': '4601', 'SYSTEMROOT': 'C:\\Windows', 'PATH': 'C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;;c:\\salt\\bin\\lib\\site-packages\\pywin32_system32;/bin;/sbin;/usr/bin;/usr/sbin;/usr/local/bin;c:\\salt\\bin\\lib\\site-packages\\pywin32_system32', 'PROGRAMFILES(X86)': 'C:\\Program 
s (x86)', 'TEMP': 'C:\\Windows\\TEMP', 'COMMONPROGRAMFILES(X86)': 'C:\\Program 
s (x86)\\Common 
s', 'PROCESSOR_ARCHITECTURE': 'AMD64', 'ALLUSERSPROFILE': 'C:\\ProgramData', 'LOCALAPPDATA': 'C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local', 'PROGRAMW6432': 'C:\\Program 
s', 'USERNAME': 'WIN-K4Q69V088IO$', 'COMSPEC': 'C:\\Windows\\system32\\cmd.exe', 'PROGRAMDATA': 'C:\\ProgramData', 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC', 'FP_NO_HOST_CHECK': 'NO', 'WINDIR': 'C:\\Windows', 'APPDATA': 'C:\\Windows\\system32\\config\\systemprofile\\AppData\\Roaming', 'SYSTEMDRIVE': 'C:', 'PYTHONHOME': '', 'NUMBER_OF_PROCESSORS': '1', 'PROCESSOR_LEVEL': '6', 'COMMONPROGRAMW6432': 'C:\\Program 
s\\Common 
s', 'OS': 'Windows_NT', 'PUBLIC': 'C:\\Users\\Public', 'USERPROFILE': 'C:\\Windows\\system32\\config\\systemprofile'}, 'stdout': -1, 'stdin': None, 'cwd': 'C:\\Windows\\system32\\config\\systemprofile'}', reason: [Error 2] The system cannot find the file specified
Started: 06:17:04.388000