|
3 | 3 | # |
4 | 4 | # GAM7 |
5 | 5 | # |
6 | | -# Copyright 2025, All Rights Reserved. |
| 6 | +# Copyright 2026, All Rights Reserved. |
7 | 7 | # |
8 | 8 | # Licensed under the Apache License, Version 2.0 (the "License"); |
9 | 9 | # you may not use this file except in compliance with the License. |
|
25 | 25 | """ |
26 | 26 |
|
27 | 27 | __author__ = 'GAM Team <google-apps-manager@googlegroups.com>' |
28 | | -__version__ = '7.31.04' |
| 28 | +__version__ = '7.31.05' |
29 | 29 | __license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)' |
30 | 30 |
|
31 | 31 | #pylint: disable=wrong-import-position |
@@ -3831,9 +3831,12 @@ def _writeGamCfgFile(config, fileName, action): |
3831 | 3831 | stderrErrorMsg(fileErrorMessage(fileName, e, Ent.CONFIG_FILE)) |
3832 | 3832 |
|
3833 | 3833 | def _verifyValues(sectionName, inputFilterSectionName, outputFilterSectionName): |
| 3834 | + itemNamePattern = getREPattern() if checkArgumentPresent('variables') else None |
3834 | 3835 | printKeyValueList([Ent.Singular(Ent.SECTION), sectionName]) # Do not use printEntity |
3835 | 3836 | Ind.Increment() |
3836 | 3837 | for itemName, itemEntry in GC.VAR_INFO.items(): |
| 3838 | + if itemNamePattern and not itemNamePattern.search(itemName): |
| 3839 | + continue |
3837 | 3840 | sectName = sectionName |
3838 | 3841 | if itemName in GC.CSV_INPUT_ROW_FILTER_ITEMS: |
3839 | 3842 | if inputFilterSectionName: |
@@ -4014,7 +4017,7 @@ def _setMultiprocessExit(): |
4014 | 4017 | usageErrorExit(formatKeyValueList('', [EV_GAMCFGSECTION, sectionName, 'select', Msg.NOT_ALLOWED], '')) |
4015 | 4018 | else: |
4016 | 4019 | sectionName = _getCfgSection(configparser.DEFAULTSECT, GC.SECTION) |
4017 | | -# select <SectionName> [save] [verify] |
| 4020 | +# select <SectionName> [save] [verify [variables <RESearchPattern>]] |
4018 | 4021 | if checkArgumentPresent(Cmd.SELECT_CMD): |
4019 | 4022 | sectionName = _selectSection() |
4020 | 4023 | GM.Globals[GM.SECTION] = sectionName # Save section for inner gams |
@@ -4065,7 +4068,7 @@ def _setMultiprocessExit(): |
4065 | 4068 | if GM.Globals[GM.PARSER].has_option(section, GC.CMDLOG_MAX__BACKUPS): |
4066 | 4069 | GM.Globals[GM.PARSER].set(section, GC.CMDLOG_MAX_BACKUPS, GM.Globals[GM.PARSER].get(section, GC.CMDLOG_MAX__BACKUPS)) |
4067 | 4070 | GM.Globals[GM.PARSER].remove_option(section, GC.CMDLOG_MAX__BACKUPS) |
4068 | | -# config (<VariableName> [=] <Value>)* [save] [verify] |
| 4071 | +# config (<VariableName> [=] <Value>)* [save] [verify [variables <RESearchPattern>]] |
4069 | 4072 | if checkArgumentPresent(Cmd.CONFIG_CMD): |
4070 | 4073 | while Cmd.ArgumentsRemaining(): |
4071 | 4074 | if checkArgumentPresent('save'): |
|
0 commit comments