Skip to content

Commit

Permalink
Moved digitalocean driver to molecule-digitalocean
Browse files Browse the repository at this point in the history
The driver has its own repository now:
https://github.com/pycontribs/molecule-digitalocean

Signed-off-by: Sorin Sbarnea <[email protected]>
Fixes: #2310
  • Loading branch information
ssbarnea committed Oct 24, 2019
1 parent f5ff15f commit e791aa7
Show file tree
Hide file tree
Showing 23 changed files with 4 additions and 952 deletions.
7 changes: 0 additions & 7 deletions docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,6 @@ Delegated
:undoc-members:


DigitalOcean
^^^^^^^^^^^^

.. autoclass:: molecule.driver.digitalocean.DigitalOcean()
:undoc-members:


Docker
^^^^^^

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

140 changes: 0 additions & 140 deletions molecule/driver/digitalocean.py

This file was deleted.

19 changes: 0 additions & 19 deletions molecule/test/functional/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def skip_test(request, driver_name):
else "Skipped '{}' not supported"
)
support_checks_map = {
'digitalocean': supports_digitalocean,
'docker': supports_docker,
'ec2': supports_ec2,
'gce': supports_gce,
Expand Down Expand Up @@ -294,24 +293,6 @@ def demands_delegated():
return pytest.config.getoption('--delegated')


@pytest.helpers.register
def supports_digitalocean():
try:
# ansible >=2.8
# The _digital_ocean module is deprecated, and will be removed in
# ansible 2.12. This is a temporary fix, and should be addressed
# based on decisions made in the related github issue:
# https://github.com/ansible/molecule/issues/2054
from ansible.modules.cloud.digital_ocean._digital_ocean import HAS_DOPY
except ImportError:
# ansible <2.8
from ansible.modules.cloud.digital_ocean.digital_ocean import HAS_DOPY

env_vars = ('DO_API_KEY',)

return _env_vars_exposed(env_vars) and HAS_DOPY


@pytest.helpers.register
def supports_ec2():
from ansible.module_utils.ec2 import HAS_BOTO3
Expand Down
Loading

0 comments on commit e791aa7

Please sign in to comment.