summaryrefslogtreecommitdiff
path: root/heat/common/param_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Convert props form delimited params to listsrabi2016-08-261-0/+10
| | | | | | | | Use allow_conversion flag to convert comma_delimited_list to list before validation when using from_parameter. Change-Id: Id144aade23eee13df227acdb728906c8dd345337 Closes-Bug: #1617019
* Fix [H405] pep rule in heat/commonPeter Razumovsky2015-10-081-4/+4
| | | | | | Implements bp docstring-improvements Change-Id: I4e7f5362e73252873872d53aa6984b865bdeb4b4
* Raise HTTPBadRequest instead of ValueError for API validationhuangtianhua2015-05-271-5/+6
| | | | | | | | Raise HTTPBadRequest exception instead of ValueError for parameters validation. Change-Id: I468181930299353908a53a3a940ff843d8547bde Closes-Bug: #1449349
* Support to generate hot template based on resource typehuangtianhua2015-04-281-0/+9
| | | | | | | | | | | Currently heat supports to create CFN template based on the given resource type. And this patch adds an option to allow user to specify template type to generate(support HOT template at the same time). blueprint support-to-generate-hot-templates Change-Id: I55cfb9b0f87e638350f2f6367fb399d772fff7e1
* Add ability to filter stacks by tagJason Dunsmore2015-04-161-0/+9
| | | | | | blueprint stack-tags Change-Id: I4b5bc741fc271cb08ec588ae962573c59286dae5
* Utility function for int param checkingtengqm2015-03-031-0/+28
| | | | | | | | | | This patch adds a utility function for checking the int type parameters passed to the API layer. A test case is included for this utility function. To exemplify how to use it, the events controller is revised to make use of this function. The plan is to add this checking to all int type parameters at API layer. Change-Id: If4a1e2e5e7adbc272e2cfa5b1918cdf733926013
* Make import of oslo libraries namespacelessJens Rosenboom2015-02-181-1/+1
| | | | | | | See https://blueprints.launchpad.net/oslo-incubator/+spec/drop-namespace-packages Closes-Bug: 1423174 Change-Id: I48680ce6e7ce91005c147ab4388203946171d433
* Remove deprecated function i18n.install('heat')Ethan Lynn2014-10-131-1/+1
| | | | | | | | Since i18n.install() is deprecated, remove it from heat codes and import i18n._() to where it needed. blueprint oslo-i18n Change-Id: Icefada18b5a33112b425cd90d31d3a6a5f06188a
* Switch to oslo.utilsJulien Danjou2014-09-301-1/+2
| | | | Change-Id: I74979d8f75b099858314a30c98bb252c379e0304
* Fix error count for stack-list while show deletedhuangtianhua2014-07-091-2/+2
| | | | | | | | | | 1.The count for stack-list is incorrect while show deleted. The count should include the deleted ones. 2.We should check the value of 'with_count', if the value is invalid, we should raise ValueError. Change-Id: Ie1eef7a7ec63870ac28929bcadcd917bbc8d3203 Closes-bug: #1331383
* Move API parameter parsing from OpenStack API to engineJason Dunsmore2014-05-191-0/+26
In commit 4169c1bd8ce4db0a794e22471994ea401b77b9c0, the API parameter parsing was moved to the OpenStack API. Since then, inputs to the CFN API were not being validated, creating a security hole. Change-Id: I21920591075bcefbe695316dab6605afd6f4ec64 Closes-Bug: #1317667