In successful provisioning for cloud, ES_FOUND_ENROLLE and ES_OK are returned
in a callback function.
Change-Id: I1ab32d817ff324a777d60d2ecbb5a5a1908a4f0b
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10735
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
[& cntForReceivedCallbackWithSuccess](std::shared_ptr< CloudPropProvisioningStatus > status)
{
// Will called twice
- if(status->getESResult() == ES_OK)
+ if(status->getESResult() == ES_OK || status->getESResult() == ES_FOUND_ENROLLEE)
{
cntForReceivedCallbackWithSuccess++;
}
[& cntForReceivedCallbackWithSuccess](std::shared_ptr< CloudPropProvisioningStatus > status)
{
// Will called twice
- if(status->getESResult() == ES_OK)
+ if(status->getESResult() == ES_OK || status->getESResult() == ES_FOUND_ENROLLEE)
{
cntForReceivedCallbackWithSuccess++;
}