Error patch
This commit is contained in:
parent
00184e623e
commit
49ce03168a
2 changed files with 3 additions and 3 deletions
2
server/Test/automatingTests.php
Normal file → Executable file
2
server/Test/automatingTests.php
Normal file → Executable file
|
@ -23,6 +23,6 @@ foreach($servers as $server){
|
||||||
$floatingIp->action("listFloatingIp");
|
$floatingIp->action("listFloatingIp");
|
||||||
$listFloatingIp = json_decode($App->show(), true)["FloatingIp"];
|
$listFloatingIp = json_decode($App->show(), true)["FloatingIp"];
|
||||||
foreach ($listFloatingIp as $floatIp){
|
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>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -66,8 +66,8 @@ class floatingIp {
|
||||||
private function listFloatingIp(){
|
private function listFloatingIp(){
|
||||||
try{
|
try{
|
||||||
$result = array();
|
$result = array();
|
||||||
|
$l = $this->libClass->listFloatingIps();
|
||||||
$l = $this->libClass->getFloatingIps();
|
error_log(var_export($l, true), 0);
|
||||||
echo 'toto';
|
echo 'toto';
|
||||||
foreach ($l as $tmp) {
|
foreach ($l as $tmp) {
|
||||||
$result[] = $tmp;
|
$result[] = $tmp;
|
||||||
|
|
Loading…
Add table
Reference in a new issue