This is an automated email from the ASF dual-hosted git repository.
zrhoffman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new f24c0b8 Correct parameter name in
TOSession.get_parameters_by_profile_id (#6590)
f24c0b8 is described below
commit f24c0b8257c8762e774c0154618294863a066a1a
Author: David Cole <[email protected]>
AuthorDate: Mon Feb 28 17:45:09 2022 +0000
Correct parameter name in TOSession.get_parameters_by_profile_id (#6590)
* Align decorator variable with method vpparam naming
* Update Changelog
* Update Changelog
---
CHANGELOG.md | 1 +
traffic_control/clients/python/trafficops/tosession.py | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 505975d5..0c2c2af 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -19,6 +19,7 @@ The format is based on [Keep a
Changelog](http://keepachangelog.com/en/1.0.0/).
- [#6549](https://github.com/apache/trafficcontrol/issues/6549) Fixed internal
server error while deleting a delivery service created from a DSR (Traafic Ops).
- [#6538](https://github.com/apache/trafficcontrol/pull/6538) Fixed the
incorrect use of secure.port on TrafficRouter and corrected to the httpsPort
value from the TR server configuration.
- [#6562](https://github.com/apache/trafficcontrol/pull/6562) Fixed incorrect
template in Ansible dataset loader role when fallbackToClosest is defined.
+- [#6590](https://github.com/apache/trafficcontrol/pull/6590) Python client:
Corrected parameter name in decorator for get_parameters_by_profile_id
### Removed
- Remove traffic_portal dependencies to mitigate `npm audit` issues,
specifically `grunt-concurrent`, `grunt-contrib-concat`,
`grunt-contrib-cssmin`, `grunt-contrib-jsmin`, `grunt-contrib-uglify`,
`grunt-contrib-htmlmin`, `grunt-newer`, and `grunt-wiredep`
diff --git a/traffic_control/clients/python/trafficops/tosession.py
b/traffic_control/clients/python/trafficops/tosession.py
index 3ba7438..f907911 100644
--- a/traffic_control/clients/python/trafficops/tosession.py
+++ b/traffic_control/clients/python/trafficops/tosession.py
@@ -1293,7 +1293,7 @@ class TOSession(RestApiSession):
:raises: Union[LoginError, OperationError]
"""
- @api_request('get', 'profiles/{id:d}/parameters', ('3.0',))
+ @api_request('get', 'profiles/{profile_id:d}/parameters', ('3.0',))
def get_parameters_by_profile_id(self, profile_id=None):
"""
Get all Parameters associated with a Profile by Id.