Revision 2ed0e208 lib/config.py
b/lib/config.py | ||
---|---|---|
1144 | 1144 |
if target is None: |
1145 | 1145 |
if len(self._config_data.nodegroups) != 1: |
1146 | 1146 |
raise errors.OpPrereqError("More than one node group exists. Target" |
1147 |
" group must be specified explicitely.")
|
|
1147 |
" group must be specified explicitly.") |
|
1148 | 1148 |
else: |
1149 | 1149 |
return self._config_data.nodegroups.keys()[0] |
1150 | 1150 |
if target in self._config_data.nodegroups: |
Also available in: Unified diff