Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Expose required collection #45

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions molecule_openstack/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
import os
from typing import Dict

from molecule.api import Driver

Expand Down Expand Up @@ -146,3 +147,8 @@ def template_dir(self):
command in order to figure out where to load the templates from.
"""
return os.path.join(os.path.dirname(__file__), "cookiecutter")

@property
def required_collections(self) -> Dict[str, str]:
"""Return collections dict containing names and versions required."""
return {"openstack.cloud": "1.5.3"}
4 changes: 4 additions & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# helps ansible-lint install required collection when it is missing
collections:
- name: openstack.cloud
version: ">=1.5.3"
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ setup_requires =

# These are required in actual runtime:
install_requires =
molecule >= 3.2.0
molecule >= 3.4.0
pyyaml >= 5.1, < 6

[options.extras_require]
Expand Down