equal
deleted
inserted
replaced
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).' |