From 2ab05cc0554a774f7f9b0e8835985ae3fb4baff6 Mon Sep 17 00:00:00 2001 From: Matthew Kent Date: Fri, 13 Jun 2014 14:35:30 -0700 Subject: [PATCH] Check array for commands rather than existence. --- providers/container.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/container.rb b/providers/container.rb index 0c6239f..f7ab517 100644 --- a/providers/container.rb +++ b/providers/container.rb @@ -216,7 +216,7 @@ def load_current_resource only_if do _lxc.rootfs.join('etc/chef/first_run.json').exist? || !new_resource.container_commands.empty? || - (node.run_state[:lxc][:meta][new_resource.name][:new_container] && new_resource.initialize_commands) + (node.run_state[:lxc][:meta][new_resource.name][:new_container] && !new_resource.initialize_commands.empty?) end end