From e2afd4e6c1f387d8f5792a5362c664d9fd416ab8 Mon Sep 17 00:00:00 2001 From: Jake Jackson Date: Wed, 13 Nov 2019 18:46:14 -0500 Subject: [PATCH 1/2] fixing pep8 sanity test doc fragments fix for sanity test ```ERROR: Found 1 pep8 issue(s) which need to be resolved: ERROR: plugins/doc_fragment/gcp.py:10:1: E302: expected 2 blank lines, found 1 ``` tested and passed with this fix --- plugins/doc_fragment/gcp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/doc_fragment/gcp.py b/plugins/doc_fragment/gcp.py index e92530c..5dfeb00 100644 --- a/plugins/doc_fragment/gcp.py +++ b/plugins/doc_fragment/gcp.py @@ -5,6 +5,9 @@ from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + + class ModuleDocFragment(object): # GCP doc fragment. DOCUMENTATION = r''' From d7e0f8694a449cbc38a58861b66601c0d13ba8dd Mon Sep 17 00:00:00 2001 From: Jake Jackson Date: Wed, 13 Nov 2019 18:50:17 -0500 Subject: [PATCH 2/2] fixing for sanity test metaclass fix addressing ```ERROR: plugins/module_utils/gcp_utils.py:0:0: missing: __metaclass__ = type ``` tested locally and passes --- plugins/module_utils/gcp_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/module_utils/gcp_utils.py b/plugins/module_utils/gcp_utils.py index 16a467a..20256fa 100644 --- a/plugins/module_utils/gcp_utils.py +++ b/plugins/module_utils/gcp_utils.py @@ -3,6 +3,8 @@ from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + try: import requests HAS_REQUESTS = True