Skip to content

Commit

Permalink
removing debugging and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Tunguska55 committed Oct 10, 2023
1 parent 302cf2f commit 1484444
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
12 changes: 0 additions & 12 deletions library/openshift_provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = \
Expand Down
3 changes: 0 additions & 3 deletions tasks/project-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 0 additions & 8 deletions tasks/provision-retry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}"
Expand All @@ -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:
Expand Down

0 comments on commit 1484444

Please sign in to comment.