summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Debian.py
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-06-29 19:15:03 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-06-29 19:15:03 +0000
commitb0c589fcf1902fbe330f433a1b60833286245fcc (patch)
tree821b5b8149108aa64da617d2c1018b3659cd704d /src/lib/Client/Debian.py
parent99badcf9823b52c261ebc04e1d85c0c6766f0c31 (diff)
downloadbcfg2-b0c589fcf1902fbe330f433a1b60833286245fcc.tar.gz
bcfg2-b0c589fcf1902fbe330f433a1b60833286245fcc.tar.bz2
bcfg2-b0c589fcf1902fbe330f433a1b60833286245fcc.zip
* Add specific info reporting code for Extra elements
* Add data collection for redhat toolset (rpm/chkconfig) * Add data collection for debian toolset (apt/glob) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1904 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Debian.py')
-rw-r--r--src/lib/Client/Debian.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/Client/Debian.py b/src/lib/Client/Debian.py
index 113d304a6..9632bd08c 100644
--- a/src/lib/Client/Debian.py
+++ b/src/lib/Client/Debian.py
@@ -50,6 +50,7 @@ class ToolsetImpl(Bcfg2.Client.Toolset.Toolset):
files = [filename for filename in rawfiles if self.svcre.match(filename).group('name') == entry.get('name')]
if entry.get('status') == 'off':
if files:
+ entry.set('current_status', 'on')
return False
else:
return True
@@ -57,6 +58,7 @@ class ToolsetImpl(Bcfg2.Client.Toolset.Toolset):
if files:
return True
else:
+ entry.set('current_status', 'off')
return False
def InstallService(self, entry):
@@ -97,6 +99,10 @@ class ToolsetImpl(Bcfg2.Client.Toolset.Toolset):
if [filename for filename in output if filename not in modlist]:
return False
return True
+ else:
+ entry.set('current_version', self.installed[entry.get('name')])
+ return False
+ entry.set('current_version', 'None')
return False
def Inventory(self):