Skip to content
Snippets Groups Projects
Commit 65a9cbdc1037 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

rename variable to avoid shadowing warning

parent 82279e3937ff
No related branches found
No related tags found
1 merge request!9Expanded configurations
......@@ -187,7 +187,7 @@
namespace = parser.parse_args(argv)
apply(namespace)
project_name = namespace.name
exec = namespace.exec
exec_type = namespace.exec
command = namespace.command
user = namespace.user
# get postgres version from config
......@@ -197,7 +197,7 @@
# run an exec command
docker_command = None
interactive = not bool(command)
if exec == PSQL:
if exec_type == PSQL:
if not user:
user = "postgres"
docker_command = ["psql", "--user", user]
......@@ -209,7 +209,7 @@
if namespace.database:
docker_command.append(namespace.database)
user = "root"
elif exec == SH:
elif exec_type == SH:
if not user:
user = "root"
docker_command = ["sh"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment