diff options
| -rwxr-xr-x[-rw-r--r--] | server/Test/automatingTests.php | 2 | ||||
| -rwxr-xr-x | server/core/FloatingIp.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/server/Test/automatingTests.php b/server/Test/automatingTests.php index 6de4de5..8715464 100644..100755 --- a/server/Test/automatingTests.php +++ b/server/Test/automatingTests.php @@ -23,6 +23,6 @@ foreach($servers as $server){ $floatingIp->action("listFloatingIp"); $listFloatingIp = json_decode($App->show(), true)["FloatingIp"]; foreach ($listFloatingIp as $floatIp){ - echo $floatIp['floating_ip_address']." ".$floatIp['id']." ".$floatIp["status"]."<br>"; + echo "IP : ".$floatIp['floating_ip_address']." et ID: ".$floatIp['id']." ".$floatIp["status"]."<br>"; } ?>
\ No newline at end of file diff --git a/server/core/FloatingIp.php b/server/core/FloatingIp.php index 26f5ef1..f26c3fb 100755 --- a/server/core/FloatingIp.php +++ b/server/core/FloatingIp.php @@ -66,8 +66,8 @@ class floatingIp { private function listFloatingIp(){ try{ $result = array(); - - $l = $this->libClass->getFloatingIps(); + $l = $this->libClass->listFloatingIps(); + error_log(var_export($l, true), 0); echo 'toto'; foreach ($l as $tmp) { $result[] = $tmp; |
