Skip to content

Commit 87b51a9

Browse files
create-guest base files
1 parent af4fd92 commit 87b51a9

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""List Reserved Capacity"""
2+
# :license: MIT, see LICENSE for more details.
3+
4+
import click
5+
6+
import SoftLayer
7+
from SoftLayer.CLI import environment
8+
from SoftLayer.CLI import formatting
9+
from SoftLayer.managers.vs_capacity import CapacityManager as CapacityManager
10+
11+
12+
from pprint import pprint as pp
13+
14+
@click.command()
15+
@environment.pass_env
16+
def cli(env):
17+
print("This is where you would create a guest")

SoftLayer/CLI/virt/capacity/list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ def cli(env):
3636
capacity = "%s%s" % (occupied_string, available_string)
3737
table.add_row([rc['id'], rc['name'], capacity, flavor, cost_string, rc['createDate']])
3838
env.fout(table)
39-
# pp(result)
39+
pp(result)

SoftLayer/managers/vs_capacity.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ def create(self, name, datacenter, backend_router_id, capacity, quantity, test=F
9292
receipt = self.ordering_manager.place_order(*args, **kwargs)
9393
return receipt
9494

95+
def create_guest(self):
96+
97+
9598

9699

97100
"""

0 commit comments

Comments
 (0)