From 783ade29a9bb11c75174d62013fc8a3c8b3c5b12 Mon Sep 17 00:00:00 2001 From: Bryan Kendall Date: Tue, 19 Apr 2016 16:49:39 -0700 Subject: [PATCH] fix condition for shrinkwrap --- ansible/roles/builder/templates/basic_node/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/builder/templates/basic_node/Dockerfile b/ansible/roles/builder/templates/basic_node/Dockerfile index b8c1c5ba..594ddb5f 100644 --- a/ansible/roles/builder/templates/basic_node/Dockerfile +++ b/ansible/roles/builder/templates/basic_node/Dockerfile @@ -27,7 +27,7 @@ ADD ./repo/package.json /{{ name }}/package.json # Add shrinkwrap from the current build context (`.` is the repo) first # If we change a non first-level dependency, this will break cache as expected -{% if has_shrinkwrap %} +{% if has_shrinkwrap is defined %} ADD ./repo/npm-shrinkwrap.json /{{ name }}/npm-shrinkwrap.json {% endif %}