3
@@ -701,12 +701,13 @@ class EnvMonitor(object):
4
dhcpcmd = "pidof dhclient3"
5
dhcppid = RunGetOutput(dhcpcmd,chk_err=False)[1]
6
while not self.shutdown:
8
- if os.path.isfile(a):
9
- if os.path.isfile(GetLastPathElement(a)):
10
- os.remove(GetLastPathElement(a))
12
- Log("EnvMonitor: Moved " + a + " -> " + LibDir)
14
+ for a in RulesFiles:
15
+ if os.path.isfile(a):
16
+ if os.path.isfile(GetLastPathElement(a)):
17
+ os.remove(GetLastPathElement(a))
19
+ Log("EnvMonitor: Moved " + a + " -> " + LibDir)
20
if publish != None and publish.lower().startswith("y"):
22
if socket.gethostname() != self.HostName:
23
@@ -2318,12 +2319,13 @@ def Install():
24
if UsesDpkg() and not Run("dpkg-query -s network-manager >/dev/null 2>&1",chk_err=False): # We want this to fail - supress error logging on error.
25
Error(GuestAgentLongName + " is not compatible with network-manager.")
27
- for a in RulesFiles:
28
- if os.path.isfile(a):
29
- if os.path.isfile(GetLastPathElement(a)):
30
- os.remove(GetLastPathElement(a))
32
- Warn("Moved " + a + " -> " + LibDir + "/" + GetLastPathElement(a) )
34
+ for a in RulesFiles:
35
+ if os.path.isfile(a):
36
+ if os.path.isfile(GetLastPathElement(a)):
37
+ os.remove(GetLastPathElement(a))
39
+ Warn("Moved " + a + " -> " + LibDir + "/" + GetLastPathElement(a) )
41
if IsUbuntu() and not IsPackagedUbuntu():
42
# Support for Ubuntu's upstart configuration