Skip to content

Commit f581767

Browse files
committed
When checking the error type from a failed vagrant desutrcution, make comparison case insensitve - for BASH and ZSH support. deis/deis#346
1 parent e20373a commit f581767

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

provider/vagrant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def destroy_node(node):
146146
_host_ssh(commands=[rm_vagrantfile, rm_node_dir], creds=node['creds'])
147147
except RuntimeError as err:
148148
# If we couldn't cd to the node dir, just log that as a warning
149-
if 'No such file or directory' in str(err):
149+
if 'no such file or directory' in str(err).lower():
150150
logger.warn(err)
151151
else:
152152
raise

0 commit comments

Comments
 (0)