Commit 99e35de8 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Use section name as default application name.

Avoid duplicates in deployment configurations.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2189 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 7024dde5
......@@ -39,7 +39,7 @@ parser.add_option('-n', '--name', help = 'the node name (impove logging)')
(options, args) = parser.parse_args()
arguments = dict(
uuid = options.uuid,
name = options.name,
name = options.name or options.section,
cluster = options.cluster,
masters = options.masters,
bind = options.bind,
......
......@@ -41,7 +41,7 @@ parser.add_option('-l', '--logfile', help = 'specify a logging file')
arguments = dict(
uuid = options.uuid or None,
bind = options.bind,
name = options.name,
name = options.name or options.section,
cluster = options.cluster,
masters = options.masters,
replicas = options.replicas,
......
......@@ -45,7 +45,7 @@ parser.add_option('-d', '--database', help = 'database connections string')
arguments = dict(
uuid = options.uuid,
bind = options.bind,
name = options.name,
name = options.name or options.section,
cluster = options.cluster,
masters = options.masters,
database = options.database,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment