Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaqin Li committed Aug 13, 2024
1 parent 58251ec commit 9c704e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
<h4 class="modal-title">Modify Host Type Mapping Confirm</h4>
</div>
<div class="modal-body" id="modifyHostTypeMappingModal">
<input class="form-control" name="id" required="true" type="hidden" value= "{{ host_type_mapping.default_id }}"/>
<input class="form-control" name="id" required="true" type="hidden" value= "{{ host_type_mapping.defaultId }}"/>
<div class="form-group">
<label class="deployToolTip control-label text-center col-xs-6">
Default Host Type
</label>
<div class="col-md-6">
{{ host_type_mapping.default_id }}
{{ host_type_mapping.defaultId }}
</div>
</div>
<div class="form-group">
Expand Down
2 changes: 2 additions & 0 deletions deploy-board/deploy_board/webapp/cluster_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,10 @@ def get_host_types_mapping(request):

def get_host_type_mapping_by_id(request, host_type_id):
host_type_mapping = hosttypesmapping_helper.get_by_id(request, host_type_id)
host_types = hosttypes_helper.get_by_provider(request, 'AWS')
contents = render_to_string("clusters/modify_host_type_mapping_modal.tmpl", {
'host_type_mapping': host_type_mapping,
'hosttype_list': host_types,
"csrf_token": get_token(request)
})
return HttpResponse(json.dumps(contents), content_type="application/json")
Expand Down

0 comments on commit 9c704e6

Please sign in to comment.