X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=accounts.py;fp=accounts.py;h=c5ae7a4dc5944ba54aae818114f3dd2d9e3b9740;hb=198bf60356ccdf302d9a2be819f319475b5e94e0;hp=0dbf000ea731c13df5b93a0f3c47cd481af2b2e5;hpb=0fd3392ee63c1ea84db707456a0fcf26a378d211;p=nodemanager.git diff --git a/accounts.py b/accounts.py index 0dbf000..c5ae7a4 100644 --- a/accounts.py +++ b/accounts.py @@ -106,6 +106,8 @@ class Worker: self._acct = None # the account object currently associated with this worker def ensure_created(self, rec, startingup = Startingup): + """Check account type is still valid. If not, recreate sliver. If still valid, + check if running and configure/start if not.""" curr_class = self._get_class() next_class = type_acct_class[rec['type']] if next_class != curr_class: