diff --git a/bijoe/hobo_agent/management/commands/hobo_deploy.py b/bijoe/hobo_agent/management/commands/hobo_deploy.py index 3947ca4..285605d 100644 --- a/bijoe/hobo_agent/management/commands/hobo_deploy.py +++ b/bijoe/hobo_agent/management/commands/hobo_deploy.py @@ -26,7 +26,7 @@ from django.conf import settings def pg_dsn_quote(value): - return "'%s'" % value.replace('\\', '\\\\').replace('\'', '\\\'') + return "'%s'" % str(value).replace('\\', '\\\\').replace('\'', '\\\'') def config_parser_quote(value): diff --git a/tests/test_hobo_deploy.py b/tests/test_hobo_deploy.py index 1d880e4..c661541 100644 --- a/tests/test_hobo_deploy.py +++ b/tests/test_hobo_deploy.py @@ -46,7 +46,7 @@ def test_deploy_specifics(tmpdir, settings, monkeypatch): 'HOST': 'hostname.zob.org', 'USER': 'hep', 'PASSWORD': 'a \'%fc', - 'PORT': '1234', + 'PORT': 1234, } } hobo_environment = {