refactor: Remove unused email sending functionality and update invoice status descriptions
This commit is contained in:
@@ -230,6 +230,29 @@ class instace:
|
||||
def __init__():
|
||||
return list()
|
||||
|
||||
def new_trial(name: str) -> bool:
|
||||
"""
|
||||
Generates a new trial instance with the subdomain [name].invario.eu
|
||||
|
||||
Input:
|
||||
- name -> String
|
||||
|
||||
Output:
|
||||
- bool if the creation of the instance works (True: creation worked; False: didnt work)
|
||||
|
||||
manage-tenant.sh trial <tenant_id> [port] [days]
|
||||
"""
|
||||
port_starter = 10002
|
||||
port = port_starter
|
||||
for i in instace.list():
|
||||
port =+ 1
|
||||
|
||||
if execute_script(_var, _cmd, "trial", clear_special(name), port):
|
||||
add_dns(name, port)
|
||||
return int(port)
|
||||
else:
|
||||
return False
|
||||
|
||||
def new(name: str) -> int:
|
||||
"""
|
||||
Generates a new instance with the subdomain [name].invario.eu
|
||||
|
||||
Reference in New Issue
Block a user