This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch 4.18
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.18 by this push:
     new 896b8bfabf1 VR: fix wrong check when compare two configuration files 
(#9822)
896b8bfabf1 is described below

commit 896b8bfabf11ecde7b505b0a5bfe0d5981f21275
Author: Wei Zhou <weiz...@apache.org>
AuthorDate: Thu Nov 7 10:18:02 2024 +0100

    VR: fix wrong check when compare two configuration files (#9822)
---
 systemvm/debian/opt/cloud/bin/cs/CsFile.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/systemvm/debian/opt/cloud/bin/cs/CsFile.py 
b/systemvm/debian/opt/cloud/bin/cs/CsFile.py
index 2ee631a89d6..160d4932c51 100755
--- a/systemvm/debian/opt/cloud/bin/cs/CsFile.py
+++ b/systemvm/debian/opt/cloud/bin/cs/CsFile.py
@@ -175,6 +175,6 @@ class CsFile:
         self.new_config = list(temp_config)
 
     def compare(self, o):
-        result = (isinstance(o, self.__class__) and set(self.config) == 
set(o.config))
+        result = (isinstance(o, self.__class__) and self.config == o.config)
         logging.debug("Comparison of CsFiles content is ==> %s" % result)
         return result

Reply via email to