This fixes a bug that raises an obscure error caused by an attempt to
load a non-existent state file. Previously, if remote state could not be
loaded, terraform state pull would return successfully with a nil
value. This value would be loaded into the inventory, causing Bolt to
raise an error. Now, the plugin will check that terraform state pull
not only returned successfully but that it also returned data to act on.
This fixes a bug that raises an obscure error caused by an attempt to load a non-existent state file. Previously, if remote state could not be loaded,
terraform state pull
would return successfully with anil
value. This value would be loaded into the inventory, causing Bolt to raise an error. Now, the plugin will check thatterraform state pull
not only returned successfully but that it also returned data to act on.Fixes puppetlabs/bolt#1436