Skip to content

Commit

Permalink
Make initialization status messages more descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
gholms committed Oct 3, 2012
1 parent 14a3061 commit 3ed69f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clc/eucadmin/eucadmin/initialize.py
Expand Up @@ -58,7 +58,7 @@ def main(self):
db_dir = os.path.join(self.config['EUCALYPTUS'], db_dir = os.path.join(self.config['EUCALYPTUS'],
'var','lib','eucalyptus','db') 'var','lib','eucalyptus','db')
if os.path.exists(os.path.join(db_dir, 'data/ibdata1')): if os.path.exists(os.path.join(db_dir, 'data/ibdata1')):
sys.exit('Database in %s already exists' % db_dir) sys.exit('error: database in %s already exists' % db_dir)
if self.debug: if self.debug:
cmd_string = DebugInitCommand % (self.config['EUCALYPTUS'], cmd_string = DebugInitCommand % (self.config['EUCALYPTUS'],
self.config['EUCA_USER'], self.config['EUCA_USER'],
Expand All @@ -70,7 +70,7 @@ def main(self):
self.init_scripts() self.init_scripts()
if 'CLOUD_OPTS' in self.config: if 'CLOUD_OPTS' in self.config:
cmd_string += ' %s' % self.config['CLOUD_OPTS'] cmd_string += ' %s' % self.config['CLOUD_OPTS']
print 'Initializing Database...' print 'Initializing a new cloud. This may take a few minutes.'
cmd = Command(cmd_string) cmd = Command(cmd_string)
if self.debug: if self.debug:
print '\tStatus=%d' % cmd.status print '\tStatus=%d' % cmd.status
Expand Down

0 comments on commit 3ed69f4

Please sign in to comment.