in playbooks/roles/cyclecloud/files/configure.py [0:0]
def initialize_cyclecloud_cli(admin_user, cyclecloud_admin_pw):
print("Setting up azure account in CycleCloud and initializing cyclecloud CLI")
# Extract the webServerContextPath configuration
webServerContextPath = read_cycle_server_property('webServerContextPath')
if webServerContextPath == '/':
webServerContextPath = ''
print(f'webServerContextPath: {webServerContextPath}')
password_flag = ("--password=%s" % cyclecloud_admin_pw)
print("Initializing cyclecloud CLI")
_catch_sys_error([path_to_cyclecloud, "initialize", "--loglevel=debug", "--batch",
"--url=https://localhost:9443%s"% webServerContextPath, "--verify-ssl=false",
"--username=%s" % admin_user, password_flag])