Reformatted stripe_utils.py

This commit is contained in:
PCoder 2017-09-23 03:25:48 +05:30
parent 99e5cf5587
commit 9ab7622a9c

View file

@ -256,9 +256,10 @@ class StripeUtils(object):
if hdd is not None: if hdd is not None:
dcl_plan_string = '{dcl_plan_string}-hdd-{hdd}gb'.format( dcl_plan_string = '{dcl_plan_string}-hdd-{hdd}gb'.format(
dcl_plan_string=dcl_plan_string, hdd=hdd) dcl_plan_string=dcl_plan_string, hdd=hdd)
stripe_plan_id_string = '{app}-v{version}-{plan}'.format(app=app, stripe_plan_id_string = '{app}-v{version}-{plan}'.format(
version=version, app=app,
plan=dcl_plan_string) version=version,
plan=dcl_plan_string)
return stripe_plan_id_string return stripe_plan_id_string
@staticmethod @staticmethod
@ -268,6 +269,6 @@ class StripeUtils(object):
:return: :return:
""" """
return "{cpu} Cores, {memory} GB RAM, {disk_size} GB SSD".format( return "{cpu} Cores, {memory} GB RAM, {disk_size} GB SSD".format(
cpu=cpu, cpu=cpu,
memory=memory, memory=memory,
disk_size=disk_size) disk_size=disk_size)