Skip to content

Commit

Permalink
Bugfix in VM IP show
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Dec 14, 2015
1 parent c644202 commit 250c5ec
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions format.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ function formatCloud($tokens) {

function formatIPs($tokens) {
$res = "";
for ($i=0;in_array('net_interface.' . $i . '.ip', array_keys($tokens));$i++) {
$res = $res . str_replace("'","",$tokens['net_interface.' . $i . '.ip']) . '<br>';
}
for ($i=0;$i<10;$i++) {
if (in_array('net_interface.' . $i . '.ip', array_keys($tokens))) {
$res = $res . $i . " => " . str_replace("'","",$tokens['net_interface.' . $i . '.ip']) . '<br>';
}
}

return $res;
}
Expand Down

0 comments on commit 250c5ec

Please sign in to comment.