From 21d8b36501b69ecc8aebc1325b697eec1da0b6de Mon Sep 17 00:00:00 2001 From: Olivier Bilodeau Date: Mon, 24 Sep 2018 16:38:17 -0400 Subject: [PATCH] bugfix: Tolerate 404 errors on chocolatey installs They happen way too often and break entire builds. I think we can tolerate them for now. --- malboxes/templates/snippets/provision_powershell.json | 5 +++-- malboxes/templates/snippets/provision_powershell_win7.json | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/malboxes/templates/snippets/provision_powershell.json b/malboxes/templates/snippets/provision_powershell.json index d4c41bc..c1d0106 100644 --- a/malboxes/templates/snippets/provision_powershell.json +++ b/malboxes/templates/snippets/provision_powershell.json @@ -13,9 +13,10 @@ } {% if choco_packages %}, { - "type": "windows-shell", + "type": "powershell", "inline": [ "choco install {{ choco_packages }} -y" - ] + ], + "valid_exit_codes": [ 0, 404 ] } {% endif %} diff --git a/malboxes/templates/snippets/provision_powershell_win7.json b/malboxes/templates/snippets/provision_powershell_win7.json index 82a27da..dcdc747 100644 --- a/malboxes/templates/snippets/provision_powershell_win7.json +++ b/malboxes/templates/snippets/provision_powershell_win7.json @@ -32,10 +32,11 @@ {% endif %} {% if choco_packages %}, { - "type": "windows-shell", + "type": "powershell", "inline": [ "choco install npcap --package-parameters '/winpcap_mode=yes' -y", "choco install {{ choco_packages }} -y" - ] + ], + "valid_exit_codes": [ 0, 404 ] } {% endif %}