Move module dependency functions outside of module (#342)

Move module dependency functions outside of module

SUMMARY

This moves the has_at_least and requires functions that had been on the
module to top level functions. The functions on the module now call
these with a few added bits of functionality.
Moving these functions to the top level and removing their requirement
on having a module makes them usable in situations where we may not yet
have a module, such as during client creation.

ISSUE TYPE

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis <None>
Reviewed-by: None <None>
This commit is contained in:
Mike Graves
2022-01-24 10:42:40 -05:00
parent 8171c994df
commit 08a3d951d0
3 changed files with 83 additions and 72 deletions

View File

@@ -201,7 +201,7 @@
- name: assert that task failed with proper message
assert:
that:
- '"kubernetes >= 17.17.0 is required" in _result.module_stderr'
- '"This is required to use in-memory config." in _result.msg'
when:
- _stat.stat.exists
- _stat.stat.readable