mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-8999: Don't override resource if provided by agent.properties
If a custom resource (kvm/libvirt implementation) is defined in agent.properties don't override with the default, but check and fallback to the default if resource property not defined Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> (cherry picked from commit 536a8b22c8865dc94281bce6267930a63e03ab77) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
535ab51b9a
commit
1e8d39b12e
@ -678,7 +678,8 @@ class cloudAgentConfig(serviceCfgBase):
|
||||
cfo.addEntry("guid", str(self.syscfg.env.uuid))
|
||||
if cfo.getEntry("local.storage.uuid") == "":
|
||||
cfo.addEntry("local.storage.uuid", str(bash("uuidgen").getStdout()))
|
||||
cfo.addEntry("resource", "com.cloud.hypervisor.kvm.resource.LibvirtComputingResource")
|
||||
if cfo.getEntry("resource") == "":
|
||||
cfo.addEntry("resource", "com.cloud.hypervisor.kvm.resource.LibvirtComputingResource")
|
||||
cfo.save()
|
||||
|
||||
self.syscfg.svo.stopService("cloudstack-agent")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user