summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Frame.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove svn keywordsSol Jerome2012-02-191-1/+0
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* prompt for interactive install of pre and both actions (#1052)Chris St. Pierre2012-01-251-20/+22
|
* bcfg2: Ignore "-l" if configuring from a fileHolger Weiß2011-09-121-17/+17
| | | | | | | | | The "-f" option, which tells the client to configure from a file rather than querying the server, cannot be combined with the "-l" option (nor with the equivalent setting in the bcfg2.conf(5) file), as a decision list won't be available. Instead of crashing (with a KeyError: 'decision_list'), the client will now ignore the "-l" option if the "-f" option also is specified.
* Mark entry as modified only if Install() succeededHolger Weiß2011-09-071-1/+2
| | | | | The client now makes sure that an entry won't be reported as modified if the Install() method which handled the entry returned False.
* Don't omit "important" entries from reportsHolger Weiß2011-09-041-0/+1
| | | | | Fix the problem that modified entries weren't included in the client statistics if their "important" attribute was set to "true".
* Frame: Fix 'important' interactive installation (#1015)Sol Jerome2011-06-211-9/+12
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Frame: Fix 'important' entry installation in decision mode (Reported by m4z ↵Sol Jerome2011-06-091-36/+50
| | | | | | on irc) Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Create non-ASCII diffsHolger Weiß2011-06-061-1/+2
| | | | | | | | | | | The client now also transmits diffs of files which include non-US-ASCII data (using the encoding setting from Options.py), unless they look like binary files. In the past, non-ASCII files were transmitted as Base64 blobs. In addition, "bcfg2 -I" no longer refuses to display non-ASCII diffs. Resolves ticket #999.
* Fix the bcfg2 client -r optionJonathan Billings2011-04-251-2/+2
| | | | | | | The man page for 'bcfg2' says to use -r 'all', 'Service' or 'Package', but the code only responded to -r 'all', 'service' or 'package'. Update the client to allow 'all', 'service', 'Service', 'package' and 'Package'.
* Client: PY3K + PEP8 fixesSol Jerome2011-04-071-7/+22
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* POSIX: Remove client-side support for old POSIX typesSol Jerome2010-10-181-14/+0
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Commit whitelist/blacksupport for glob style entriesNarayan Desai2010-07-301-6/+19
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5986 ce84e21b-d406-0410-9b95-82705330c041
* Updated files to match PEP 257Fabian Affolter2010-06-071-14/+15
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5898 ce84e21b-d406-0410-9b95-82705330c041
* Frame.py: Fix handling of ^C on CentOS 5Sol Jerome2010-04-221-0/+3
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5835 ce84e21b-d406-0410-9b95-82705330c041
* Frame: Modify list comprehension so that it doesn't require lxmlSol Jerome2010-04-141-2/+3
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5825 ce84e21b-d406-0410-9b95-82705330c041
* APT: Add sources.list* to __important__ listSol Jerome2010-04-131-0/+14
| | | | | | | | | | | | Frame: Fix bug in handling of __important__ entries This should allow people the easier option of configuring their APT sources in the /etc/sources.list.d dirctory instead of just relying on sources.list to be correct. This commit also fixes a bug where the client was relying on a 'ConfigFile' entry tag even in the case where a Path entry was present. Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
* Actions: Fix bundle filtering of actions (Resolves Ticket #766)Narayan Desai2009-10-241-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5499 ce84e21b-d406-0410-9b95-82705330c041
* Client Frame: Do not run updates for unspecified bundles (Fix for ticket #751)Sol Jerome2009-09-281-10/+13
| | | | | | | | | | | Do not allow client tool drivers to be called for bundles which are not specified when running in bundle mode (-b). I believe this case only shows up for Actions run always currently, however, we should keep the interface consistent and ignore unspecified bundles completely. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5468 ce84e21b-d406-0410-9b95-82705330c041
* POSIX: Add support for nonexistent Path entry typesSol Jerome2009-09-261-1/+1
| | | | | | | | | | Allow specification of Path entries which should not exist on the client. This gives the user the ability to explicitly remove Path entries if they exist on the client. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5464 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Add list of packages and dependencies on clientSol Jerome2009-09-151-0/+6
| | | | | | | | | | | Now that we have Packages, it is useful to be able to determine whether your package was specified directly in your configuration or was added by Packages. This commit allows you to view this information in debug mode on the client. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5434 ce84e21b-d406-0410-9b95-82705330c041
* Implement -z (for Independent entries only, a la -b) (Resolves Ticket #616)Narayan Desai2009-06-141-0/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5281 ce84e21b-d406-0410-9b95-82705330c041
* Python 2to3 updates for the Client toolsSol Jerome2009-04-241-23/+36
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5178 ce84e21b-d406-0410-9b95-82705330c041
* Update dictionary accesses to work with Python 3.0Sol Jerome2008-12-221-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4999 ce84e21b-d406-0410-9b95-82705330c041
* Warn on missing bundles when using -b (Resolves Ticket #615) [bugfix]Sol Jerome2008-12-211-4/+15
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4997 ce84e21b-d406-0410-9b95-82705330c041
* pylint fixes for client codeNarayan Desai2008-12-081-7/+7
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4991 ce84e21b-d406-0410-9b95-82705330c041
* Implement the balance of decision mode support (tested and working)Narayan Desai2008-10-081-6/+7
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4933 ce84e21b-d406-0410-9b95-82705330c041
* Tighten up decision-list client-side codeNarayan Desai2008-10-081-10/+23
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4931 ce84e21b-d406-0410-9b95-82705330c041
* Implement client side of server-delegated decision supportNarayan Desai2008-09-241-0/+14
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4919 ce84e21b-d406-0410-9b95-82705330c041
* Improve interactive mode entry selection for __important__ entries (another ↵Narayan Desai2008-08-051-2/+4
| | | | | | patch from f.pauget) (Resolves Ticket #590) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4856 ce84e21b-d406-0410-9b95-82705330c041
* Disable handling of __important__ files in bundle and dryrun modesNarayan Desai2008-06-131-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4695 ce84e21b-d406-0410-9b95-82705330c041
* Add an extra blank line in multi-entry outputNarayan Desai2008-04-051-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4483 ce84e21b-d406-0410-9b95-82705330c041
* Remove validation states from Tool instances (in preparation for ↵Narayan Desai2008-03-171-6/+6
| | | | | | DecisionList stuff) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4423 ce84e21b-d406-0410-9b95-82705330c041
* Fix tb in __important__ path (reported/patched by SolJ) [bugfix]Narayan Desai2008-02-131-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4376 ce84e21b-d406-0410-9b95-82705330c041
* Harden handling if __important__ entries (reported by SolJ) [bugfix]Narayan Desai2008-01-251-4/+9
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4289 ce84e21b-d406-0410-9b95-82705330c041
* Remove client-side of (deprecated) toolset supportNarayan Desai2008-01-191-15/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4267 ce84e21b-d406-0410-9b95-82705330c041
* Frame updates (and start of unit-testing)Narayan Desai2008-01-181-16/+14
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4266 ce84e21b-d406-0410-9b95-82705330c041
* Implement support for -b foo:bar:baz on the command line (Resolves Ticket #516)Narayan Desai2008-01-161-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4244 ce84e21b-d406-0410-9b95-82705330c041
* Harden frame against tool driver syntax errors (Related to #507) [bugfix]Narayan Desai2007-12-021-1/+6
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4020 ce84e21b-d406-0410-9b95-82705330c041
* Client side of improved support for binary files in statisticsNarayan Desai2007-08-011-5/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3587 ce84e21b-d406-0410-9b95-82705330c041
* fix base64 problemNarayan Desai2007-07-161-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3453 ce84e21b-d406-0410-9b95-82705330c041
* Add checker support to ComponentNarayan Desai2007-07-131-1/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3441 ce84e21b-d406-0410-9b95-82705330c041
* Add preliminary support for FreeBSD Packages (from gogo)Narayan Desai2007-06-021-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3223 ce84e21b-d406-0410-9b95-82705330c041
* Make interactive messages consistent (Resolves Ticket #437)Narayan Desai2007-05-151-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3179 ce84e21b-d406-0410-9b95-82705330c041
* Add better driver control support to bcfg2 client (Resolves Ticket #389)Narayan Desai2007-04-051-2/+8
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3012 ce84e21b-d406-0410-9b95-82705330c041
* Add support for drivers not enabled by default (in preparation for addition ↵Narayan Desai2007-04-021-1/+1
| | | | | | of RPMng) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3002 ce84e21b-d406-0410-9b95-82705330c041
* Fix interactive modeNarayan Desai2007-03-121-0/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2932 ce84e21b-d406-0410-9b95-82705330c041
* Move multiple inclusion messages into debug modeNarayan Desai2007-03-121-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2926 ce84e21b-d406-0410-9b95-82705330c041
* Properly integrate actions into Interactive mode (Resolves Ticket #414)Narayan Desai2007-03-101-39/+38
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2922 ce84e21b-d406-0410-9b95-82705330c041
* Fix overenthusiastic yum override (Reported by Pedro)Narayan Desai2007-02-051-4/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2785 ce84e21b-d406-0410-9b95-82705330c041
* Ensure that (pre) actions are not executed from BaseNarayan Desai2007-02-021-0/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2771 ce84e21b-d406-0410-9b95-82705330c041