|
1 | 1 | # |
2 | 2 | # Copyright (C) 2007-2016 CEA/DAM |
3 | | -# Copyright (C) 2015-2017 Stephane Thiell <[email protected]> |
| 3 | +# Copyright (C) 2015-2018 Stephane Thiell <[email protected]> |
4 | 4 | # |
5 | 5 | # This file is part of ClusterShell. |
6 | 6 | # |
|
59 | 59 |
|
60 | 60 | from ClusterShell.Event import EventHandler |
61 | 61 | from ClusterShell.MsgTree import MsgTree |
62 | | -from ClusterShell.NodeSet import RESOLVER_NOGROUP, std_group_resolver |
63 | | -from ClusterShell.NodeSet import NodeSet, NodeSetParseError |
| 62 | +from ClusterShell.NodeSet import RESOLVER_NOGROUP, set_std_group_resolver_config |
| 63 | +from ClusterShell.NodeSet import NodeSet, NodeSetParseError, std_group_resolver |
64 | 64 | from ClusterShell.Task import Task, task_self |
65 | 65 |
|
66 | 66 |
|
@@ -793,18 +793,21 @@ def main(): |
793 | 793 | parser.add_option("-n", "--nostdin", action="store_true", dest="nostdin", |
794 | 794 | help="don't watch for possible input from stdin") |
795 | 795 |
|
796 | | - parser.install_config_options('clush.conf(5)') |
| 796 | + parser.install_groupsconf_option() |
| 797 | + parser.install_clush_config_options() |
797 | 798 | parser.install_nodes_options() |
798 | 799 | parser.install_display_options(verbose_options=True) |
799 | 800 | parser.install_filecopy_options() |
800 | 801 | parser.install_connector_options() |
801 | 802 |
|
802 | 803 | (options, args) = parser.parse_args() |
803 | 804 |
|
| 805 | + set_std_group_resolver_config(options.groupsconf) |
| 806 | + |
804 | 807 | # |
805 | 808 | # Load config file and apply overrides |
806 | 809 | # |
807 | | - config = ClushConfig(options) |
| 810 | + config = ClushConfig(options, options.conf) |
808 | 811 |
|
809 | 812 | # Initialize logging |
810 | 813 | if config.verbosity >= VERB_DEBUG: |
|
0 commit comments