summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-09-15 00:43:36 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-09-15 00:43:36 +0000
commit1f8aa9dc8bdad04814fe864c5d30d51ec904a9b0 (patch)
treee8b6f158fa1a17f039d7ffd7f7cee12391ee2fed /src
parent0c443449ac1bff48f6c71759ffce267371dc7678 (diff)
downloadbcfg2-1f8aa9dc8bdad04814fe864c5d30d51ec904a9b0.tar.gz
bcfg2-1f8aa9dc8bdad04814fe864c5d30d51ec904a9b0.tar.bz2
bcfg2-1f8aa9dc8bdad04814fe864c5d30d51ec904a9b0.zip
Fix up minor toolset problems
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2253 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Toolset.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/Client/Toolset.py b/src/lib/Client/Toolset.py
index a134e1e61..06879e631 100644
--- a/src/lib/Client/Toolset.py
+++ b/src/lib/Client/Toolset.py
@@ -536,8 +536,8 @@ class Toolset(object):
leftovers = [strent for strent in entry.getchildren() if not self.states.get(strent, False)]
if len(leftovers) > 0:
self.logger.info("%s %s incomplete" % (entry.tag, entry.get('name', "")))
- self.logger.verbose("Incorrect entries:")
- self.logger.verbose(["%s: %s" % (left.tag, left.get('name')) for left in leftovers])
+ self.logger.info("Incorrect entries:")
+ self.logger.info(["%s: %s" % (left.tag, left.get('name')) for left in leftovers])
else:
self.structures[entry] = True
@@ -571,15 +571,15 @@ class Toolset(object):
#ask user for each entry
work = self.pkgwork['add'] + self.pkgwork['update']
work += [ent for ent in self.states if ent.tag != 'Package' and not self.states[ent]]
- self.iinst = [];
- for entry in work:
- try:
- if raw_input("Would you like to install %s: %s? (y/N): " % (entry.tag, entry.get('name'))) in ['y','Y']:
- self.iinst.append((entry.tag, entry.get('name')))
+ self.iinst = [];
+ for entry in work:
+ try:
+ if raw_input("Would you like to install %s: %s? (y/N): " % (entry.tag, entry.get('name'))) in ['y', 'Y']:
+ self.iinst.append((entry.tag, entry.get('name')))
except:
- continue
- self.logger.info("You chose to install:")
- self.logger.info(['%s:%s' % item for item in self.iinst])
+ continue
+ self.logger.info("You chose to install:")
+ self.logger.info(['%s:%s' % item for item in self.iinst])
def Install(self):
'''Correct detected misconfigurations'''
@@ -603,8 +603,8 @@ class Toolset(object):
# add non-package entries
work += [ent for ent in self.states if ent.tag != 'Package' and not self.states[ent]]
- if self.setup['interactive']:
- work = [entry for entry in work if (entry.tag, entry.get('name')) in self.iinst]
+ if self.setup['interactive']:
+ work = [entry for entry in work if (entry.tag, entry.get('name')) in self.iinst]
# Counters
## Packages left to install