From 10a61c9dc32f51b484f3c67ba8195e4167f2c750 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Wed, 31 Mar 2021 14:15:05 +0200 Subject: [PATCH] fixed str formatting (#2139) (#2141) (cherry picked from commit f1dbef414387ad50f7505625024cdbc3f8e1959f) Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> --- changelogs/fragments/2139-dimensiondata_network-str-format.yml | 2 ++ plugins/modules/cloud/dimensiondata/dimensiondata_network.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/2139-dimensiondata_network-str-format.yml diff --git a/changelogs/fragments/2139-dimensiondata_network-str-format.yml b/changelogs/fragments/2139-dimensiondata_network-str-format.yml new file mode 100644 index 0000000000..115b04f045 --- /dev/null +++ b/changelogs/fragments/2139-dimensiondata_network-str-format.yml @@ -0,0 +1,2 @@ +bugfixes: + - dimensiondata_network - bug when formatting message, instead of % a simple comma was used (https://github.com/ansible-collections/community.general/pull/2139). diff --git a/plugins/modules/cloud/dimensiondata/dimensiondata_network.py b/plugins/modules/cloud/dimensiondata/dimensiondata_network.py index 2187ceaa45..246b486d06 100644 --- a/plugins/modules/cloud/dimensiondata/dimensiondata_network.py +++ b/plugins/modules/cloud/dimensiondata/dimensiondata_network.py @@ -260,7 +260,7 @@ class DimensionDataNetworkModule(DimensionDataModule): ) self.module.fail_json( - "Unexpected failure deleting network with id %s", network.id + "Unexpected failure deleting network with id %s" % network.id ) except DimensionDataAPIException as e: