Initialize BaseComponent members in constructor
This commit is contained in:
parent
a9fd516dad
commit
0763f0d999
2 changed files with 7 additions and 6 deletions
|
@ -2,10 +2,10 @@ from autobahn.asyncio.wamp import ApplicationSession
|
||||||
|
|
||||||
class BaseComponent(ApplicationSession):
|
class BaseComponent(ApplicationSession):
|
||||||
""" Base class for all registered component sessions in the server. """
|
""" Base class for all registered component sessions in the server. """
|
||||||
server = None
|
|
||||||
parent_manager = None
|
|
||||||
build_logs = None
|
|
||||||
user_files = None
|
|
||||||
|
|
||||||
def __init__(self, config, **kwargs):
|
def __init__(self, config, **kwargs):
|
||||||
ApplicationSession.__init__(self, config)
|
ApplicationSession.__init__(self, config)
|
||||||
|
self.server = None
|
||||||
|
self.parent_manager = None
|
||||||
|
self.build_logs = None
|
||||||
|
self.user_files = None
|
||||||
|
|
|
@ -146,8 +146,9 @@ class BuildComponent(BaseComponent):
|
||||||
LOGGER.debug('Invoking build: %s', self.builder_realm)
|
LOGGER.debug('Invoking build: %s', self.builder_realm)
|
||||||
LOGGER.debug('With Arguments: %s', build_arguments)
|
LOGGER.debug('With Arguments: %s', build_arguments)
|
||||||
|
|
||||||
return (self.call("io.quay.builder.build", **build_arguments)
|
return (self
|
||||||
.add_done_callback(self._build_complete))
|
.call("io.quay.builder.build", **build_arguments)
|
||||||
|
.add_done_callback(self._build_complete))
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _total_completion(statuses, total_images):
|
def _total_completion(statuses, total_images):
|
||||||
|
|
Reference in a new issue