summaryrefslogtreecommitdiffstats
path: root/debian/patches/0001-fix-syntax-warnings.patch
blob: f043d04ec49cbcc1445f1dfcfb48b75543a4826a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Description: Fix syntax warnings
 There are four SyntaxWarning when installing the Debian package, fix those.
Author: Lee Garrett <debian@rocketjump.eu>
Forwarded: not-needed
Last-Update: 2021-03-24
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/collections-debian-merged/ansible_collections/azure/azcollection/plugins/modules/azure_rm_registrationassignment.py
+++ b/collections-debian-merged/ansible_collections/azure/azcollection/plugins/modules/azure_rm_registrationassignment.py
@@ -230,7 +230,7 @@
             response = old_response
             self.results['state'] = response
 
-        if self.state is 'present':
+        if self.state == 'present':
             if self.results['state'].get('properties', None) is not None:
                 registration_definition_id = self.results['state']['properties']['registration_definition_id']
                 self.results['state']['properties'].clear()
--- a/collections-debian-merged/ansible_collections/cyberark/pas/plugins/modules/cyberark_account.py
+++ b/collections-debian-merged/ansible_collections/cyberark/pas/plugins/modules/cyberark_account.py
@@ -531,7 +531,7 @@
                                 logging.debug(
                                     ("child_module_parm_value: %s "
                                      "child_existing_account_value=%s path=%s")
-                                    (
+                                    % (
                                         child_module_parm_value,
                                         child_existing_account_value,
                                         path_value,
@@ -571,7 +571,7 @@
                                 )
                             logging.debug(
                                 "parameter_name=%s  value=%s existing=%s"
-                                (
+                                % (
                                     path_value,
                                     child_module_parm_value,
                                     child_existing_account_value,
@@ -632,7 +632,7 @@
                         )
                     logging.debug(
                         "parameter_name=%s  value=%s existing=%s"
-                        (
+                        % (
                             parameter_name, module_parm_value,
                             existing_account_value
                         )