diff --git a/aiida/cmdline/params/options/__init__.py b/aiida/cmdline/params/options/__init__.py index 16ae5eb95c..accd78c65f 100644 --- a/aiida/cmdline/params/options/__init__.py +++ b/aiida/cmdline/params/options/__init__.py @@ -249,7 +249,7 @@ def decorator(command): '--db-host', type=types.HostnameType(), help='Database server host. Leave empty for "peer" authentication.', - default=DEFAULT_DBINFO['host'] + default='localhost' ) DB_PORT = OverridableOption( diff --git a/aiida/cmdline/params/options/commands/setup.py b/aiida/cmdline/params/options/commands/setup.py index b5cb9f974d..1ec43c82ed 100644 --- a/aiida/cmdline/params/options/commands/setup.py +++ b/aiida/cmdline/params/options/commands/setup.py @@ -259,7 +259,7 @@ def get_quicksetup_password(ctx, param, value): # pylint: disable=unused-argume SETUP_DATABASE_HOSTNAME = QUICKSETUP_DATABASE_HOSTNAME.clone( prompt='Database host', - contextual_default=functools.partial(get_profile_attribute_default, ('database_hostname', DEFAULT_DBINFO['host'])), + contextual_default=functools.partial(get_profile_attribute_default, ('database_hostname', 'localhost')), cls=options.interactive.InteractiveOption )