From 635c09b15132c7c02668fb8ff83653ae2fb70dc7 Mon Sep 17 00:00:00 2001 From: bravof Date: Mon, 6 Jul 2020 19:17:47 -0400 Subject: [PATCH] fix(generator.yml): changing file attr to allow exporter to delete this file Signed-off-by: bravof --- snmp_ee_vnf/helm-charts/eechart/source/vnf_ee.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/snmp_ee_vnf/helm-charts/eechart/source/vnf_ee.py b/snmp_ee_vnf/helm-charts/eechart/source/vnf_ee.py index 43e5d9b3..78fb735e 100755 --- a/snmp_ee_vnf/helm-charts/eechart/source/vnf_ee.py +++ b/snmp_ee_vnf/helm-charts/eechart/source/vnf_ee.py @@ -53,7 +53,8 @@ class VnfEE: commands = ("cp /app/vnf/generator/generator.yml ./", "snmp_generator generate --output-path=/etc/snmp_exporter/snmp.yml", - "cp /app/vnf/generator/generator.yml /etc/snmp_exporter/") + "cp /app/vnf/generator/generator.yml /etc/snmp_exporter/", + "chattr -i /etc/snmp_exporter/generator.yml") for command in commands: return_code, stdout, stderr = await util_ee.local_async_exec(command) if return_code != 0: -- GitLab