The existing test for directory existence with the magic code 50, in remote provisioner func (v *RemoteMode) checkRemoteDirExists(remoteDir string) (bool, error), appears to be failing for users, as per: https://github.com/radekg/terraform-provisioner-ansible/issues/138
Maybe the original test was too clever. This PR attempts to simplify the test and look for a substring that we know should exist in case of that expected error.
Summary
The existing test for directory existence with the magic code
50
, in remote provisionerfunc (v *RemoteMode) checkRemoteDirExists(remoteDir string) (bool, error)
, appears to be failing for users, as per: https://github.com/radekg/terraform-provisioner-ansible/issues/138Maybe the original test was too clever. This PR attempts to simplify the test and look for a substring that we know should exist in case of that expected error.