Commit ed6ccbf5 authored by Florian Kempenich's avatar Florian Kempenich
Browse files

Refine error message

parent 0336d0c9
......@@ -59,7 +59,11 @@ def _create_configuration_file(ssh_key, do_token):
file.write('digitalocean_token_location: "{0}"\n'.format(do_token))
def _has_droplet_inventory_symlink():
return os.path.islink(os.path.join(ANSIBLE, INVENTORY, INVENTORY_DROPLETS_LINK))
inventory_link = os.path.join(ANSIBLE, INVENTORY, INVENTORY_DROPLETS_LINK)
inventory_file = os.path.join(os.path.expanduser("~"), INVENTORY_DROPLETS_FILE)
return (os.path.islink(inventory_link)
and os.path.isfile(inventory_file))
def _create_droplet_inventory_symlink():
inventory_link = os.path.join(ANSIBLE, INVENTORY, INVENTORY_DROPLETS_LINK)
......
......@@ -9,7 +9,7 @@ def readme():
setup(
name='ansible-droplet',
version='0.2.3',
version='0.2.4',
description='A cli to Create / Destroy DigitalOcean Droplets',
long_description=readme(),
keywords='digitalocean digital ocean droplet ansible ssh provision',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment