summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Deps.py
Commit message (Collapse)AuthorAgeFilesLines
* Update to Deps to eliminate "Failed to add dep entry for <built-in function ↵Mike McCallister2011-07-251-1/+6
| | | | | | | | Comment>:None" warning. Comments in the Deps file (inside a Package element) will cause the above error. In generating the prerequisites, we can eliminate this by looking for callable() items and excluding them.
* Treat Bound entries like unbound entries for calculating prerequisites in Deps.Mike McCallister2011-07-231-5/+7
|
* Refactor the validate_structure() method into two.Mike McCallister2011-07-231-25/+45
| | | | | | | | | | | | | New method named calculate_prereqs() handles pre-req calculation. Existing validate_structure() method now only handles memoization of the prereqs and use of the prereqs to update the configuration. Also added a sort_order value to cause this plugin to run after Packages, so we can use Deps to add dependencies to implicitly added Packages. NOTE: This doesn't work yet, as Packages adds BoundPackage entries, and Deps doesn't yet realize they are equivalent to the Package entries it knows about. This will be fixed in a future commit.
* Fixed to accommodate changes made to Plugin.py in changeset ↵Mike McCallister2011-07-221-3/+4
| | | | | | | | | | | 3291a875339a7e5569d4. The changes to the INode.Match() function in changeset 3291a875339a7e5569d4 caused breakage in the Deps plugin, as it inherits from INode. This commit adjusts the definition of the predicate function in Deps.py to mirror the changes made to INode in Plugin.py, eliminating the error about the wrong number of parameters being passed to the lambda function.
* Plugins: PY3K + PEP8 fixesSol Jerome2011-04-061-8/+13
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Updated files to match PEP 257 Fabian Affolter2010-06-091-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5904 ce84e21b-d406-0410-9b95-82705330c041
* Pylint/PEP 8 Code cleanupsSol Jerome2009-10-071-5/+7
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5477 ce84e21b-d406-0410-9b95-82705330c041
* Plugins: Fix svn keywords for ticket #698 (Fix from Mike McCallister)Sol Jerome2009-09-071-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5416 ce84e21b-d406-0410-9b95-82705330c041
* Deps: fix tb due to change in metadata.groups type (Reported by teknix)Narayan Desai2009-07-101-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5318 ce84e21b-d406-0410-9b95-82705330c041
* Implement generic structure validators and reimplement Deps as oneNarayan Desai2009-01-061-3/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5005 ce84e21b-d406-0410-9b95-82705330c041
* This patch is stage 1 of the plugin capabilities reworkNarayan Desai2009-01-051-1/+1
| | | | | | | | - define new plugin base classes - switch Plugin.__name__ => Plugin.name git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5004 ce84e21b-d406-0410-9b95-82705330c041
* Update dictionary accesses to work with Python 3.0Sol Jerome2008-12-221-3/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4999 ce84e21b-d406-0410-9b95-82705330c041
* fix typos, #560Robert Gogolok2008-05-231-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4631 ce84e21b-d406-0410-9b95-82705330c041
* Fix traceback upon error message [bugfix]Narayan Desai2008-02-061-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4334 ce84e21b-d406-0410-9b95-82705330c041
* Plugin updates: Account sudoers perms, Cfg recreate bug, Deps error pathNarayan Desai2007-10-101-1/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3784 ce84e21b-d406-0410-9b95-82705330c041
* Exclude xml comments from dependency processing Deps plugin (Resolves Ticket ↵Narayan Desai2007-06-181-1/+2
| | | | | | #450) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3316 ce84e21b-d406-0410-9b95-82705330c041
* Fix deps for Philip's tbNarayan Desai2006-08-031-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2035 ce84e21b-d406-0410-9b95-82705330c041
* Improvements to the Deps pluginNarayan Desai2006-07-141-4/+7
| | | | | | | | * Handle recursive dependencies properly (ChrisV) * Fix raise of PluginExecutionError git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1943 ce84e21b-d406-0410-9b95-82705330c041
* Add basic dependency processing codeNarayan Desai2006-07-101-0/+92
* To enable, add a Deps directory and enable the Deps plugin * schema validation works * prerequisites are automatically added to configurations git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1924 ce84e21b-d406-0410-9b95-82705330c041