Skip to content

Commit e6e9314

Browse files
authored
Fix create storage example (#3)
Fix create storage example
1 parent c0d75a7 commit e6e9314

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

examples/examples.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@
4040
'capacity': 10,
4141
'location_uuid': location['object_uuid'],
4242
'storage_type': 'storage_insane',
43-
'template_uuid': template['object_uuid'],
44-
'hostname': 'myserver',
45-
'password': 'secret_pass123!#.,'})
43+
'template': {
44+
'template_uuid': template['object_uuid'],
45+
'hostname': 'myserver',
46+
'password': 'secret_pass123!#.,'
47+
}
48+
})
4649
storage = create_storage_response['storage']
4750

4851
# create server
@@ -65,4 +68,4 @@
6568

6669
# get updated server
6770
get_server_response = client.get_server(server['object_uuid'])
68-
updated_server = get_server_response['server']
71+
updated_server = get_server_response['server']

0 commit comments

Comments
 (0)