Skip to content

Commit 552ef43

Browse files
authored
Create delete_compute_node_by_name.py
1 parent b6d2bbf commit 552ef43

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

delete_compute_node_by_name.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from openstack import connection
2+
3+
conn = connection.Connection(
4+
auth_url = 'http://YOUR_floating_IP:5000/v2.0',
5+
username = 'YOUR_USERNAME',
6+
password = 'YOUR_PASSWORD',
7+
project_name = 'YOUR_PROJECT_NAAME')
8+
9+
10+
srv = conn.compute.find_server("MyServer1")
11+
12+
conn.compute.delete_server(srv, ignore_missing=True)

0 commit comments

Comments
 (0)