diff --git a/library/openshift_provision.py b/library/openshift_provision.py index 17fad78..f552163 100644 --- a/library/openshift_provision.py +++ b/library/openshift_provision.py @@ -1392,18 +1392,6 @@ def get_resource_version_and_last_applied_configuration(self, resource): .pop('kubectl.kubernetes.io/last-applied-configuration', None) return resource_version, last_applied_configuration - # def set_resource_version_and_last_applied_configuration(self, resource_version, last_applied_configuration): - # if not resource_version or not last_applied_configuration: - # return - # merge_dict(self.resource, { - # 'metadata': { - # 'annotations': { - # 'kubectl.kubernetes.io/last-applied-configuration': last_applied_configuration - # }, - # 'resourceVersion': resource_version - # } - # }, overwrite=True) - def provision(self): current_resource = self.get_current_resource() current_resource_version, current_last_applied_configuration = \ diff --git a/tasks/project-resources.yml b/tasks/project-resources.yml index a8c77f5..1ade274 100644 --- a/tasks/project-resources.yml +++ b/tasks/project-resources.yml @@ -32,9 +32,6 @@ changed_when: >- provision | record_change_provision(change_record) ignore_errors: True -- name: PRINT OUT PROVISION - debug: - var: provision - set_fact: provision_failures: "{{ provision_failures + provision.results }}" when: "'failed' in provision and 'results' in provision" diff --git a/tasks/provision-retry.yml b/tasks/provision-retry.yml index 2727b40..00f04c2 100644 --- a/tasks/provision-retry.yml +++ b/tasks/provision-retry.yml @@ -8,10 +8,6 @@ seconds: "{{ provision_retry_wait_seconds }}" when: (provision_retry_wait_seconds | int) > 0 - # - name: Remove resourceVersion to force latest - # set_fact: - # provision_resource: "{{ provision_resource | combine({'metadata': {'resourceVersion': None}}, recursive=True) }}" - - name: "retry provisioning resources (attempt {{ retry_count }})" openshift_provision: action: "{{ provision_args.action | default(omit) }}" @@ -35,10 +31,6 @@ register: provision_retry_status ignore_errors: True - - name: PRINT PROVISION RETRY STATUS - debug: - var: provision_retry_status - # Reset provision failures - name: Clear failed resources set_fact: