File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -727,19 +727,6 @@ def get_post_resource(res):
727
727
return newres
728
728
729
729
730
- def get_patch_resource (res ):
731
- """
732
- Creates the payload for the PATCH resource admin request
733
- :param res: configuration resource
734
- :returns: resource patch
735
- """
736
-
737
- if 'extents' in res .keys ():
738
- return {'extents' : res ['extents' ]}
739
- else :
740
- return ''
741
-
742
-
743
730
def get_admin (cfg : dict ) -> dict :
744
731
745
732
schema_dict = get_config_schema ()
@@ -916,7 +903,7 @@ def get_admin(cfg: dict) -> dict:
916
903
'description' : 'Updates admin configuration resource' ,
917
904
'content' : {
918
905
'application/json' : {
919
- 'example' : get_patch_resource ( res_eg [res_eg_key ]) ,
906
+ 'example' : { 'extents' : res_eg [res_eg_key ][ 'extents' ]} ,
920
907
'schema' : schema_dict ['properties' ]['resources' ]['patternProperties' ]['^.*$' ] # noqa
921
908
}
922
909
},
You can’t perform that action at this time.
0 commit comments