Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lee KIMBER
Ansible Droplet
Commits
ed6ccbf5
Commit
ed6ccbf5
authored
Dec 04, 2017
by
Florian Kempenich
Browse files
Refine error message
parent
0336d0c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
ansible_droplet/cli.py
View file @
ed6ccbf5
...
...
@@ -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
)
...
...
setup.py
View file @
ed6ccbf5
...
...
@@ -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'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment