Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
snf-occi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
itminedu
snf-occi
Commits
8d4f9def
Commit
8d4f9def
authored
Oct 14, 2016
by
Kostas Vogias
Committed by
Stavros Sachtouris
Oct 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement delete VM OOI patch method
parent
bef8ad13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
soi/compute.py
soi/compute.py
+8
-1
No files found.
soi/compute.py
View file @
8d4f9def
...
...
@@ -12,7 +12,6 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
utils
import
empty_list_200
...
...
@@ -116,6 +115,13 @@ def snf_get_server_net_attachments(cls, req, compute_id):
return
r
def
snf_delete_server
(
cls
,
req
,
server_id
):
print
'Deleting VM with id:'
+
str
(
server_id
)
req
.
environ
[
'service_type'
]
=
'compute'
req
.
environ
[
'method_name'
]
=
'servers_delete'
req
.
environ
[
'kwargs'
]
=
{
'server_id'
:
server_id
}
req
.
get_response
(
cls
.
app
)
function_map
=
{
'index'
:
snf_index
,
'get_server'
:
snf_get_server
,
...
...
@@ -126,4 +132,5 @@ function_map = {
'get_floating_ip_pools'
:
empty_list_200
,
'get_server_volumes_link'
:
snf_get_server_volumes_link
,
'_get_ports'
:
snf_get_server_net_attachments
,
'delete'
:
snf_delete_server
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment