Commit 597d7ce1 authored by Éloi Bail's avatar Éloi Bail Committed by Gerrit Code Review

Tool: update controler with new account API

Refs #68913

Change-Id: I9f907f8d3a35c27f5414eedfde29d662be7eece9
parent 338d3224
......@@ -294,7 +294,7 @@ class DRingCtrl(Thread):
def isAccountRegistered(self, account=None):
"""Return True if the account is registered. If no account is provided, active account is used"""
return self.getAccountDetails(self._valid_account(account))['Account.registrationStatus'] in ('READY', 'REGISTERED')
return self.getVolatileAccountDetails(self._valid_account(account))['Account.registrationStatus'] in ('READY', 'REGISTERED')
def isAccountOfType(self, account_type, account=None):
"""Return True if the account type is the given one. If no account is provided, active account is used"""
......@@ -327,6 +327,14 @@ class DRingCtrl(Thread):
return self.configurationmanager.getAccountDetails(account)
return []
def getVolatileAccountDetails(self, account=None):
"""Return a list of string. If no account is provided, active account is used"""
account = self._valid_account(account)
if self.isAccountExists(account):
return self.configurationmanager.getVolatileAccountDetails(account)
return []
def setActiveCodecList(self, account=None, codec_list=''):
"""Activate given codecs on an account. If no account is provided, active account is used"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment