control: Copy everything in Group copy constructor
Initially, only what was parsed by the original Group objects was
copied, but a change in how the events setup the groups on actions
require that everything get copied. Improvements in this area will be
looked into after the base JSON support is merged.
Change-Id: If1a101cc186524d418d45dcc689e7ce5d53441b6
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/json/group.cpp b/control/json/group.cpp
index 0532b43..3b7f990 100644
--- a/control/json/group.cpp
+++ b/control/json/group.cpp
@@ -36,9 +36,13 @@
Group::Group(const Group& origObj) : ConfigBase(origObj)
{
- // Only what was parsed by the original Group object is copied
+ // Copy everything from the original Group object
_members = origObj._members;
_service = origObj._service;
+ _interface = origObj.getInterface();
+ _property = origObj.getProperty();
+ _type = origObj.getType();
+ _value = origObj.getValue();
}
void Group::setMembers(const json& jsonObj)