Fix output file permission 61/120861/3 1.0.1-policy-sync
authorVijay Venkatesh Kumar <vv770d@att.com>
Thu, 22 Apr 2021 17:52:59 +0000 (17:52 +0000)
committerVijay Venkatesh Kumar <vv770d@att.com>
Thu, 22 Apr 2021 19:19:15 +0000 (19:19 +0000)
Change-Id: Iaa4cd79bd3a02d179544606c2029ffc3fd17cf4a
Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com>
Issue-ID: DCAEGEN2-2739
Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com>
dcae-services-policy-sync/policysync/inventory.py

index 0eb91b5..678f153 100644 (file)
@@ -80,6 +80,7 @@ class Inventory:
             temp_file.close()
 
         os.rename(temp_file.name, os.path.abspath(self.file))
+        os.chmod(os.path.abspath(self.file), 0o644)
 
     async def get_policy_content(self, action=ACTION_UPDATED):
         """