[gnome-boxes/gnome-3-18] libvirt-machine: Fix a condition
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/gnome-3-18] libvirt-machine: Fix a condition
- Date: Thu, 24 Sep 2015 18:07:53 +0000 (UTC)
commit 3c02e630922713b304af3083c807f774cc5f492b
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Sep 24 19:05:06 2015 +0100
libvirt-machine: Fix a condition
This is a regression from commit 03316ae, which resulted in us never
showing the IP address in properties for local libvirt machines.
src/libvirt-machine.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index 9bb2580..30e9ef2 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -668,7 +668,7 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
}
public string? get_ip_address () {
- if (system_virt_connection == null || is_on)
+ if (system_virt_connection == null || !is_on)
return null;
var mac = get_mac_address ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]