Skip to content

Commit 9f5aa4d

Browse files
committed
Fix certificateMappingList returning valid CertificateMappings when iterated
1 parent cce4c2c commit 9f5aa4d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/OpenCloud/LoadBalancer/Resource/CertificateMapping.php

+12
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,16 @@ protected function updateJson($params = array())
9393

9494
return $object;
9595
}
96+
97+
/**
98+
* Sets properties from array || object of $values
99+
*
100+
* Used by LoadBalancer::certificateMappingList's paginated iterator
101+
* to return CertificateMappings with a valid id and hostname
102+
*
103+
* @var array|object $values
104+
*/
105+
protected function setCertificateMapping($values) {
106+
$this->populate($values);
107+
}
96108
}

0 commit comments

Comments
 (0)