summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEoleDev <EoleDev@outlook.fr>2016-04-19 19:44:09 +0200
committerEoleDev <EoleDev@outlook.fr>2016-04-19 19:44:09 +0200
commit49ce03168ad0c71a1df3ff4f9f161cbbe61bb277 (patch)
treee733a8b764c73dd86f25c42aaa4d625f1afebb1f
parent00184e623ec6dd1b5757fd9b268bc2afe97c338b (diff)
Error patch
-rwxr-xr-x[-rw-r--r--]server/Test/automatingTests.php2
-rwxr-xr-xserver/core/FloatingIp.php4
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;