Signed-off-by: Francois Gouget fgouget@codeweavers.com --- testbot/lib/WineTestBot/LibvirtDomain.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testbot/lib/WineTestBot/LibvirtDomain.pm b/testbot/lib/WineTestBot/LibvirtDomain.pm index b1e7d1b6..af79e9dd 100644 --- a/testbot/lib/WineTestBot/LibvirtDomain.pm +++ b/testbot/lib/WineTestBot/LibvirtDomain.pm @@ -264,7 +264,7 @@ sub _GetStateName($) { my ($State) = @_;
- my %StateNames = { + my %StateNames = ( Sys::Virt::Domain::STATE_NOSTATE => "no state", Sys::Virt::Domain::STATE_RUNNING => "running", Sys::Virt::Domain::STATE_BLOCKED => "blocked", @@ -273,7 +273,7 @@ sub _GetStateName($) Sys::Virt::Domain::STATE_SHUTOFF => "shutoff", Sys::Virt::Domain::STATE_CRASHED => "crashed", Sys::Virt::Domain::STATE_PMSUSPENDED => "pmsuspended", - }; + ); return $StateNames{$State} || "unknown"; }