Issue #260: Sanity test 'compile' failing because of positional args. (#261)

* Issue #260: Sanity test 'compile' failing because of positional args.

* Issue #260: Run integration tests on older Python 3.6 still.

* Issue #260: Add changelog fragment.
This commit is contained in:
Jeff Geerling
2020-10-09 10:17:52 -05:00
committed by GitHub
parent 9ff259c638
commit cbd3a2554e
3 changed files with 8 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ['3.6']
python_version: ['2.7', '3.7']
steps:
- name: Check out code
uses: actions/checkout@v2
@@ -37,6 +37,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
# Our old integration tests fail under newer Python versions.
python_version: ['3.6']
steps:
- name: Check out code
@@ -113,7 +114,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ['3.6']
python_version: ['3.7']
steps:
- name: Check out code
uses: actions/checkout@v2
@@ -136,6 +137,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
# Our old integration tests fail under newer Python versions.
python_version: ['3.6']
steps:
- name: Check out code

View File

@@ -0,0 +1,3 @@
---
bugfixes:
- k8s - Fix sanity test 'compile' failing because of positional args (https://github.com/ansible-collections/community.kubernetes/issues/260).

View File

@@ -277,7 +277,7 @@ class KubernetesModule(K8sAnsibleMixin):
argument_spec['template'] = dict(type='raw', default=None)
return argument_spec
def __init__(self, *args, k8s_kind=None, **kwargs):
def __init__(self, k8s_kind=None, *args, **kwargs):
mutually_exclusive = [
('resource_definition', 'src'),
('merge_type', 'apply'),