Repository :
http://git.fedorahosted.org/cgit/firewalld-recode.git
On branch : master
---------------------------------------------------------------
commit 4f8397b9605c625a51390ed91cc1a02e942ef393
Author: Daniel Kopecek <dkopecek(a)redhat.com>
Date: Mon Jul 28 18:12:53 2014 +0200
Get information about the zones from the FirewallD class in the getZones D-Bus method
---------------------------------------------------------------
firewalld_dbus/zone/getZones.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/firewalld_dbus/zone/getZones.cpp b/firewalld_dbus/zone/getZones.cpp
index 826fdbe..1479e3c 100644
--- a/firewalld_dbus/zone/getZones.cpp
+++ b/firewalld_dbus/zone/getZones.cpp
@@ -26,7 +26,12 @@ namespace firewalld
{
result.setTypeSignature("(as)");
UStringVector zone_names;
- _fw.getAllZoneNames(zone_names);
+
+ for (auto const& map_entry : definedZones()) {
+ const UString& zone_name = map_entry.first;
+ zone_names.push_back(zone_name);
+ }
+
result = zone_names;
return;
}