diff options
author | Tom Pollard <tom.pollard@codethink.co.uk> | 2019-09-10 11:02:02 +0100 |
---|---|---|
committer | Tom Pollard <tom.pollard@codethink.co.uk> | 2019-09-10 11:02:02 +0100 |
commit | 91ff7aa29f46f45862dea6d70f3daa16f5bcc3b7 (patch) | |
tree | d920f4f9633dc606dcefc540783e91ca16a01ff4 | |
parent | 5c6a5cc98157efd4e8f5c2d113b6d1a3be38010c (diff) | |
download | buildstream-tpollard/sandboxmessage.tar.gz |
_message.py: Use bool for sandbox Message() parametertpollard/sandboxmessage
The sandbox member of BstError is a bool, which is then used as
an arg for the message.
-rw-r--r-- | src/buildstream/_message.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/_message.py b/src/buildstream/_message.py index 195eba679..f4f342a6a 100644 --- a/src/buildstream/_message.py +++ b/src/buildstream/_message.py @@ -61,7 +61,7 @@ class Message(): action_name=None, elapsed=None, logfile=None, - sandbox=None, + sandbox=False, scheduler=False): self.message_type = message_type # Message type self.message = message # The message string @@ -71,7 +71,7 @@ class Message(): self.action_name = action_name # Name of the task queue (fetch, refresh, build, etc) self.elapsed = elapsed # The elapsed time, in timed messages self.logfile = logfile # The log file path where commands took place - self.sandbox = sandbox # The error that caused this message used a sandbox + self.sandbox = sandbox # Whether the error that caused this message used a sandbox self.pid = os.getpid() # The process pid self.scheduler = scheduler # Whether this is a scheduler level message self.creation_time = datetime.datetime.now() |