From f1dbef414387ad50f7505625024cdbc3f8e1959f Mon Sep 17 00:00:00 2001 From: Alexei Znamensky <103110+russoz@users.noreply.github.com> Date: Thu, 1 Apr 2021 00:05:40 +1300 Subject: [PATCH] fixed str formatting (#2139) --- 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: