summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Utils: Generalize safe_module_nameAlexander Sulfrian2015-07-241-0/+9
| | | | | Other plugins that also import user generated python source code, may want to use safe_module_name from TemplateHelper.
* Utils: Generalize is_string from POSIX/FileAlexander Sulfrian2015-07-221-0/+16
| | | | | | is_string from POSIX/File could be used in other situations, too. So we move it to Utils, use it from Lint/MergeFiles and replace a custom is_binary function.
* Utils: Split commands given as stringsSol Jerome2013-09-011-4/+10
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* testsuite: fixed more unit testsChris St. Pierre2013-08-121-0/+11
|
* Merge branch 'options-rewrite'Chris St. Pierre2013-08-081-1/+66
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Client/Frame.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Admin/Init.py src/lib/Bcfg2/Server/Admin/Xcmd.py src/lib/Bcfg2/Server/BuiltinCore.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/MultiprocessingCore.py src/lib/Bcfg2/Server/Plugin/base.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/Server/Plugins/Packages/__init__.py src/lib/Bcfg2/Server/SSLServer.py src/lib/Bcfg2/Utils.py src/lib/Bcfg2/settings.py src/sbin/bcfg2-crypt src/sbin/bcfg2-info src/sbin/bcfg2-lint src/sbin/bcfg2-test src/sbin/bcfg2-yum-helper tools/bcfg2-profile-templates.py
| * Options: migrated common utils to new parserChris St. Pierre2013-06-271-1/+66
| |
* | Merge branch 'maint'Chris St. Pierre2013-08-081-2/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/appendix/files/mysql.txt doc/getting_started/index.txt doc/server/plugins/structures/bundler/kernel.txt src/lib/Bcfg2/Server/MultiprocessingCore.py src/lib/Bcfg2/Server/Plugin/interfaces.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/Server/Plugins/Probes.py src/lib/Bcfg2/Server/Plugins/SSHbase.py
| * | Utils: Silence bogus pylint errorsSol Jerome2013-07-311-2/+2
| | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | | Utils: Remove unused importSol Jerome2013-07-081-2/+1
| | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | | Utils: shell removed in 3d06f311Sol Jerome2013-07-081-3/+0
| | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | | Merge branch 'maint'Sol Jerome2013-07-081-1/+3
|\| | | |/ |/| | | | | | | Conflicts: src/lib/Bcfg2/settings.py src/sbin/bcfg2-crypt
| * Executor: do not split the command line if shell is trueAlexander Sulfrian2013-06-291-1/+3
| | | | | | | | | | | | | | If the command should be excuted within a shell, it should not be splited into a list. If subcommand.Popen gets a list, the first element is the command and all other are the arguements. This breaks the shell evaluation of the commamnd.
* | Merge branch 'maint'Chris St. Pierre2013-06-271-3/+0
|\| | | | | | | | | | | | | | | | | Conflicts: doc/server/plugins/generators/cfg.txt doc/server/plugins/generators/tcheetah.txt src/lib/Bcfg2/Server/Admin/Xcmd.py src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
| * Utils: PackedDigitRange __len__() breaks with open-ended rangesChris St. Pierre2013-06-191-3/+0
| |
* | Merge branch 'maint'Chris St. Pierre2013-05-171-0/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/appendix/guides/centos.txt doc/server/plugins/grouping/metadata.txt setup.py src/lib/Bcfg2/Client/Frame.py src/lib/Bcfg2/Client/Proxy.py src/lib/Bcfg2/Server/Lint/Genshi.py src/lib/Bcfg2/Server/Lint/Validate.py src/lib/Bcfg2/Server/Plugins/Bundler.py src/lib/Bcfg2/Server/Plugins/SSHbase.py src/sbin/bcfg2-lint
| * Executor: split commands given as stringsChris St. Pierre2013-05-101-0/+2
| |
* | Fixing unit testsChris St. Pierre2013-04-251-1/+2
| |
* | Merge branch 'maint'Chris St. Pierre2013-04-241-4/+30
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Client/Client.py src/lib/Bcfg2/Client/Frame.py src/lib/Bcfg2/Client/Tools/YUM.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Admin/Perf.py src/lib/Bcfg2/Server/Admin/Xcmd.py src/lib/Bcfg2/Server/Admin/__init__.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/FileMonitor/Fam.py src/lib/Bcfg2/Server/Lint/RequiredAttrs.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Base.py src/lib/Bcfg2/Server/Plugins/Bundler.py src/lib/Bcfg2/Server/Plugins/Cfg/CfgPrivateKeyCreator.py src/lib/Bcfg2/Server/Plugins/Cvs.py src/lib/Bcfg2/Server/Plugins/Darcs.py src/lib/Bcfg2/Server/Plugins/Decisions.py src/lib/Bcfg2/Server/Plugins/FileProbes.py src/lib/Bcfg2/Server/Plugins/Fossil.py src/lib/Bcfg2/Server/Plugins/Git.py src/lib/Bcfg2/Server/Plugins/Metadata.py src/lib/Bcfg2/Server/Plugins/NagiosGen.py src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py src/lib/Bcfg2/Server/Plugins/Packages/Source.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/Server/Plugins/Properties.py src/lib/Bcfg2/Server/Plugins/__init__.py src/lib/Bcfg2/Server/__init__.py src/sbin/bcfg2-build-reports src/sbin/bcfg2-crypt testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestMetadata.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProperties.py
| * RcUpdate: Fix detection of running servicesSol Jerome2013-04-101-2/+15
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
| * testsuite: more text fixesChris St. Pierre2013-03-261-1/+1
| |
| * testsuite: can't disable pylint R0924, since it doesn't exist on older ↵Chris St. Pierre2013-03-261-1/+14
| | | | | | | | pylint and pylint barfs
| * testsuite: fixed issues found by latest version of pep8Chris St. Pierre2013-03-261-1/+1
| |
* | Merge branch '1.4.x'Chris St. Pierre2013-04-231-14/+9
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: debian/bcfg2-server.install doc/server/plugins/grouping/metadata.txt src/lib/Bcfg2/Client/Client.py src/lib/Bcfg2/Client/Tools/Portage.py src/lib/Bcfg2/Client/Tools/RcUpdate.py src/lib/Bcfg2/Client/Tools/YUM24.py src/lib/Bcfg2/Client/Tools/__init__.py src/lib/Bcfg2/Client/Tools/launchd.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Metadata.py src/lib/Bcfg2/Server/models.py src/lib/Bcfg2/Utils.py src/sbin/bcfg2-info src/sbin/bcfg2-test testsuite/Testsrc/Testlib/TestClient/TestTools/Test_init.py testsuite/Testsrc/test_code_checks.py
| * use Executor class for better subprocess calling on serverChris St. Pierre2013-03-141-7/+8
| |
| * extended usage of Executor class, added client-side timeout optionsChris St. Pierre2013-02-141-1/+155
| |
| * moved common file locking code into Bcfg2.UtilsChris St. Pierre2013-02-141-0/+10
| |
| * abstracted similar digit range classes in POSIXUsers/GroupPatterns into ↵Chris St. Pierre2013-02-141-0/+67
| | | | Bcfg2.Utils
* Executor: handle missing commands in a more backwards-compatible wayChris St. Pierre2013-03-221-3/+9
|
* Client: fix some OSError tracebacks from commands not foundChris St. Pierre2013-03-211-1/+1
|
* Executor: better timeout implementationChris St. Pierre2013-03-151-17/+11
|
* extended usage of Executor class, added client-side timeout optionsChris St. Pierre2013-02-141-1/+155
|
* moved common file locking code into Bcfg2.UtilsChris St. Pierre2013-02-141-0/+10
|
* abstracted similar digit range classes in POSIXUsers/GroupPatterns into ↵Chris St. Pierre2013-02-141-0/+67
Bcfg2.Utils