1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-25 23:21:29 +03:00

F #5149: Add support for --notemplate option (#736)

This commit is contained in:
Sergio Betanzos 2021-02-01 13:18:32 +01:00 committed by GitHub
parent 28bfcdb3c2
commit 3b5504a41f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 1 deletions

View File

@ -175,11 +175,14 @@ module OpenNebulaJSON
dsid = params['dsid'] ? params['dsid'].to_i : params['dsid']
name = params['name']
vmtemplate_name = params['vmtemplate_name']
notemplate = [true, 'true'].include?(params['notemplate'])
tag ="tag=#{params['tag']}" if params['tag'] && !params['tag'].empty?
rc = export({
:dsid => dsid,
:name => name,
:vmtemplate_name => vmtemplate_name,
:notemplate => notemplate,
:url_args => tag
})

View File

@ -181,7 +181,8 @@ define(function(require) {
var marketPlaceAppObj = {
"name" : $("#NAME", context).val(),
"vmtemplate_name" : $("#VMNAME", context).val(),
"dsid" : this.datastoresTable.idInput().val()
"dsid" : this.datastoresTable.idInput().val(),
"notemplate" : $("#NOTEMPLATE", context).is(':checked')
};
if (this.dockertagsTable) {

View File

@ -36,6 +36,14 @@
<input id="VMNAME" type="text" wizard_field="VMNAME"/>
</div>
</div>
<div class="row">
<div class="medium-6 columns">
<label for="NOTEMPLATE">
<input id="NOTEMPLATE" type="checkbox" wizard_field="NOTEMPLATE"/>
{{tr "Do not import/export associated VM templates/images"}}
</label>
</div>
</div>
<fieldset id="placeDatatableDatastore">
<legend>{{tr "Select the Datastore to store the resource"}}</legend>
{{{ datastoresTableHTML }}}