Skip to content

Commit e115351

Browse files
committed
fix formatting for plugins/module_utils/copy.py
1 parent 669674b commit e115351

File tree

2 files changed

+9
-2
lines changed
  • plugins/module_utils
  • tests/integration/targets/k8s_rollback/tasks

2 files changed

+9
-2
lines changed

plugins/module_utils/copy.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,11 @@ def run(self):
280280
if self.files_to_copy == []:
281281
# Using warn method instead of passing warnings to exit_json as it is
282282
# deprecated in ansible-core>=2.19.0
283-
self._module.warn("No file found from directory '{0}' into remote Pod.".format(
284-
self.remote_path))
283+
self._module.warn(
284+
"No file found from directory '{0}' into remote Pod.".format(
285+
self.remote_path
286+
)
287+
)
285288
self.module.exit_json(
286289
changed=False,
287290
)

tests/integration/targets/k8s_rollback/tasks/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,10 @@
402402
namespace: "{{ namespace }}"
403403
register: result
404404

405+
- name: Debug result
406+
debug:
407+
var: result
408+
405409
- name: Assert warning is returned for no rollout history
406410
assert:
407411
that:

0 commit comments

Comments
 (0)