server/serverctl.py
changeset 8434 39c5bb4dcc59
parent 8376 f42dcb798142
child 8449 cc83a3f16c0f
equal deleted inserted replaced
8433:ff9d6d269877 8434:39c5bb4dcc59
   445             extra_args=system.get('db-extra-arguments')
   445             extra_args=system.get('db-extra-arguments')
   446             extra = extra_args and {'extra_args': extra_args} or {}
   446             extra = extra_args and {'extra_args': extra_args} or {}
   447             get_connection(
   447             get_connection(
   448                 system['db-driver'], database=system['db-name'],
   448                 system['db-driver'], database=system['db-name'],
   449                 host=system.get('db-host'), port=system.get('db-port'),
   449                 host=system.get('db-host'), port=system.get('db-port'),
   450                 user=system.get('db-user'), password=system.get('db-password'),
   450                 user=system.get('db-user') or '', password=system.get('db-password') or '',
   451                 **extra)
   451                 **extra)
   452         except Exception, ex:
   452         except Exception, ex:
   453             raise ConfigurationError(
   453             raise ConfigurationError(
   454                 'You seem to have provided wrong connection information in '\
   454                 'You seem to have provided wrong connection information in '\
   455                 'the %s file. Resolve this first (error: %s).'
   455                 'the %s file. Resolve this first (error: %s).'