rhtyd commented on a change in pull request #2427: CLOUDSTACK-10252: Delete
dnsmasq leases file on restart
URL: https://github.com/apache/cloudstack/pull/2427#discussion_r163477509
##########
File path: systemvm/debian/opt/cloud/bin/cs/CsDhcp.py
##########
@@ -49,15 +49,21 @@ def process(self):
self.add(self.dbag[item])
self.write_hosts()
- if self.cloud.is_changed():
- self.delete_leases()
-
self.configure_server()
- restart_dnsmasq = self.conf.commit()
- self.cloud.commit()
+ restart_dnsmasq = False
+
+ if self.conf.commit():
+ restart_dnsmasq = True
+
+ if self.cloud.commit():
Review comment:
@resmo The commit is called on two different files, it's the same old code
refactored differently.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services