From dc525fdf78dd825e52bd0f26dec2f61efd8b5cfe Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 3 Feb 2020 23:16:14 -0500 Subject: [PATCH] Add 500 as a success return code for dellcommandupdate --- dell-command-update.sls | 13 +++++++++++++ top.sls | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 dell-command-update.sls diff --git a/dell-command-update.sls b/dell-command-update.sls new file mode 100644 index 0000000..00c97a4 --- /dev/null +++ b/dell-command-update.sls @@ -0,0 +1,13 @@ +include: + - chocolatey + +Install dellcommandupdate: + chocolatey.installed: + - name: dellcommandupdate + - require: + - sls: chocolatey + +Run dellcommandupdate: + cmd.run: + - name: '"C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe" /applyUpdates' + - success_retcodes: [0, 500] diff --git a/top.sls b/top.sls index ef54776..52f5842 100644 --- a/top.sls +++ b/top.sls @@ -3,6 +3,8 @@ base: # - winHiDPI 'TSMS-Desktop11': - corelDRAW + 'G@os:Windows and G@manufacturer:Dell*': + - dell-command-update 'G@os:Windows': - windowsWorkstation - removeShortcuts