From 6172888bf1593606bea538d865eb6c948104704f Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sat, 28 Apr 2012 10:12:18 +0200 Subject: [PATCH] Fixed some spacing --- frontend/testing/libvirt.php | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/frontend/testing/libvirt.php b/frontend/testing/libvirt.php index cd83ac4..cb190ac 100644 --- a/frontend/testing/libvirt.php +++ b/frontend/testing/libvirt.php @@ -5,25 +5,25 @@ echo ("Connecting to libvirt (URI:$uri)\n"); $conn=libvirt_connect($uri,false); if ($conn==false) { - echo ("Libvirt last error: ".libvirt_get_last_error()."\n"); - exit; + echo ("Libvirt last error: ".libvirt_get_last_error()."\n"); + exit; } else { - $hostname=libvirt_connect_get_hostname($conn); - echo ("hostname:$hostname\n"); - $domains = libvirt_domain_get_counts($conn); - echo ("Domain count: Active {$domains['active']},Inactive {$domains['inactive']}, Total {$domains['total']}\n"); - - $domains=libvirt_list_domains($conn); - foreach ($domains as $dom) - { - echo ("Name:\t".libvirt_domain_get_name($dom)."\n"); - echo("UUID:\t".libvirt_domain_get_uuid_string($dom)."\n"); - $dominfo=libvirt_domain_get_info($dom); - print_r($dominfo); - } - - echo("done"); + $hostname=libvirt_connect_get_hostname($conn); + echo ("hostname:$hostname\n"); + $domains = libvirt_domain_get_counts($conn); + echo ("Domain count: Active {$domains['active']},Inactive {$domains['inactive']}, Total {$domains['total']}\n"); + + $domains=libvirt_list_domains($conn); + foreach ($domains as $dom) + { + echo ("Name:\t".libvirt_domain_get_name($dom)."\n"); + echo("UUID:\t".libvirt_domain_get_uuid_string($dom)."\n"); + $dominfo=libvirt_domain_get_info($dom); + print_r($dominfo); + } + + echo("done"); } ?>