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

Commit ffb68d2

Browse files
authoredMar 31, 2022
Expose required collection (#45)
This lifts the minimum required molecule version to 3.4.0 Depends-On: ansible/molecule#3192 Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
1 parent 4488c0f commit ffb68d2

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed
 

‎molecule_openstack/driver.py

+6
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1919
# DEALINGS IN THE SOFTWARE.
2020
import os
21+
from typing import Dict
2122

2223
from molecule.api import Driver
2324

@@ -146,3 +147,8 @@ def template_dir(self):
146147
command in order to figure out where to load the templates from.
147148
"""
148149
return os.path.join(os.path.dirname(__file__), "cookiecutter")
150+
151+
@property
152+
def required_collections(self) -> Dict[str, str]:
153+
"""Return collections dict containing names and versions required."""
154+
return {"openstack.cloud": "1.5.3"}

‎requirements.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# helps ansible-lint install required collection when it is missing
2+
collections:
3+
- name: openstack.cloud
4+
version: ">=1.5.3"

‎setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ zip_safe = False
5050

5151
# These are required in actual runtime:
5252
install_requires =
53-
molecule >= 3.2.0
53+
molecule >= 3.4.0
5454
pyyaml >= 5.1, < 6
5555

5656
[options.extras_require]

0 commit comments

Comments
 (0)