Move to new association interface
A new association interface is defined in phosphor-dbus-interfaces
It would be nice to move the local version of the interface
to the new one.
The behavior of how association work is described here:
https://github.com/openbmc/docs/blob/master/object-mapper.md#associations
Partially resolves openbmc/openbmc#3584
Tested: See the org.openbmc.Associations interface has been replaced by the xyz
one in /xyz/openbmc_project/software/version_id object and only when the
version number is less than PNOR_MSL, "PNOR Minimum Ship Level NOT met"
is reported.
Signed-off-by: John Wang <wangzqbj@inspur.com>
Change-Id: If4afeb69a9bd8bc494b77826f2ec2854a71f56f5
diff --git a/msl_verify.cpp b/msl_verify.cpp
index dc4238c..1d93613 100644
--- a/msl_verify.cpp
+++ b/msl_verify.cpp
@@ -85,7 +85,7 @@
auto bus = sdbusplus::bus::new_default();
auto method = bus.new_method_call(BUSNAME_UPDATER, SOFTWARE_OBJPATH,
SYSTEMD_PROPERTY_INTERFACE, "Get");
- method.append(ASSOCIATIONS_INTERFACE, "associations");
+ method.append(ASSOCIATIONS_INTERFACE, "Associations");
auto response = bus.call(method);
sdbusplus::message::variant<AssociationList> associations;