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)') ...@@ -39,7 +39,7 @@ parser.add_option('-n', '--name', help = 'the node name (impove logging)')
(options, args) = parser.parse_args() (options, args) = parser.parse_args()
arguments = dict( arguments = dict(
uuid = options.uuid, uuid = options.uuid,
name = options.name, name = options.name or options.section,
cluster = options.cluster, cluster = options.cluster,
masters = options.masters, masters = options.masters,
bind = options.bind, bind = options.bind,
......
...@@ -41,7 +41,7 @@ parser.add_option('-l', '--logfile', help = 'specify a logging file') ...@@ -41,7 +41,7 @@ parser.add_option('-l', '--logfile', help = 'specify a logging file')
arguments = dict( arguments = dict(
uuid = options.uuid or None, uuid = options.uuid or None,
bind = options.bind, bind = options.bind,
name = options.name, name = options.name or options.section,
cluster = options.cluster, cluster = options.cluster,
masters = options.masters, masters = options.masters,
replicas = options.replicas, replicas = options.replicas,
......
...@@ -45,7 +45,7 @@ parser.add_option('-d', '--database', help = 'database connections string') ...@@ -45,7 +45,7 @@ parser.add_option('-d', '--database', help = 'database connections string')
arguments = dict( arguments = dict(
uuid = options.uuid, uuid = options.uuid,
bind = options.bind, bind = options.bind,
name = options.name, name = options.name or options.section,
cluster = options.cluster, cluster = options.cluster,
masters = options.masters, masters = options.masters,
database = options.database, 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