Kaydet (Commit) 73ba82c4 authored tarafından Bahadır Kandemir's avatar Bahadır Kandemir

Remove self from method, also import subprocess module

üst 092dbedc
......@@ -13,6 +13,7 @@
"""network module provides network management utils."""
import os
import subprocess
from pardus import iniutils
......@@ -107,7 +108,7 @@ def registerNameServers(profile, iface):
def unregisterNameServers(iface):
call(NET_STACK, "Network.Stack", "unregisterNameServers", (iface.name, [], ""))
def callScript(self, name, state):
def callScript(name, state):
path = os.path.join("/etc/network/netlink.d", "%s.%s" % (name, state))
if os.path.exists(path):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment