summaryrefslogtreecommitdiffstats
path: root/openstack
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-07-21 01:33:09 +0000
committerGerrit Code Review <review@openstack.org>2013-07-21 01:33:09 +0000
commitcd78a6dbd48c346aabbc5554386d42ac5a4a5771 (patch)
tree2b83386940f2bc7451586107a7d12b3524ee2a2f /openstack
parent58a3609e80542ab8ddfca81ab4de631b93a9c7a4 (diff)
parent3b16d3144531ef6802c3ff621b4e96497df7d392 (diff)
downloadoslo-cd78a6dbd48c346aabbc5554386d42ac5a4a5771.tar.gz
oslo-cd78a6dbd48c346aabbc5554386d42ac5a4a5771.tar.xz
oslo-cd78a6dbd48c346aabbc5554386d42ac5a4a5771.zip
Merge "Remove DnsmasqFilter and DeprecatedDnsmasqFilter"
Diffstat (limited to 'openstack')
-rw-r--r--openstack/common/rootwrap/filters.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/openstack/common/rootwrap/filters.py b/openstack/common/rootwrap/filters.py
index 660434a..a68a043 100644
--- a/openstack/common/rootwrap/filters.py
+++ b/openstack/common/rootwrap/filters.py
@@ -135,36 +135,6 @@ class PathFilter(CommandFilter):
exec_dirs)
-class DnsmasqFilter(CommandFilter):
- """Specific filter for the dnsmasq call (which includes env)."""
-
- CONFIG_FILE_ARG = 'CONFIG_FILE'
-
- def match(self, userargs):
- if (userargs[0] == 'env' and
- userargs[1].startswith(self.CONFIG_FILE_ARG) and
- userargs[2].startswith('NETWORK_ID=') and
- userargs[3] == 'dnsmasq'):
- return True
- return False
-
- def get_command(self, userargs, exec_dirs=[]):
- to_exec = self.get_exec(exec_dirs=exec_dirs) or self.exec_path
- dnsmasq_pos = userargs.index('dnsmasq')
- return [to_exec] + userargs[dnsmasq_pos + 1:]
-
- def get_environment(self, userargs):
- env = os.environ.copy()
- env[self.CONFIG_FILE_ARG] = userargs[1].split('=')[-1]
- env['NETWORK_ID'] = userargs[2].split('=')[-1]
- return env
-
-
-class DeprecatedDnsmasqFilter(DnsmasqFilter):
- """Variant of dnsmasq filter to support old-style FLAGFILE."""
- CONFIG_FILE_ARG = 'FLAGFILE'
-
-
class KillFilter(CommandFilter):
"""Specific filter for the kill calls.