File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1218,15 +1218,14 @@ def commit_revision(
12181218 json = config_tree_revision ,
12191219 )
12201220
1221- @handle_and_munchify_response
12221221 def get_key_in_revision (
12231222 self ,
12241223 tree_name : str ,
12251224 revision_id : str ,
12261225 key : str ,
12271226 project_guid : str = None ,
12281227 ** kwargs ,
1229- ) -> Munch :
1228+ ):
12301229 """Get a key in a revision.
12311230
12321231 Args:
@@ -1239,11 +1238,13 @@ def get_key_in_revision(
12391238 Munch: Key details as a Munch object.
12401239 """
12411240
1242- return self .c .get (
1243- url = f"{ self .v2api_host } /v2/configtrees/{ tree_name } /revisions/{ revision_id } /{ key } / " ,
1241+ result = self .c .get (
1242+ url = f"{ self .v2api_host } /v2/configtrees/{ tree_name } /revisions/{ revision_id } /{ key } " ,
12441243 headers = self .config .get_headers (project_guid = project_guid , ** kwargs ),
12451244 )
12461245
1246+ return result .text
1247+
12471248 @handle_and_munchify_response
12481249 def put_key_in_revision (
12491250 self ,
You can’t perform that action at this time.
0 commit comments