diff options
author | Tom Pollard <tom.pollard@codethink.co.uk> | 2019-09-10 11:02:02 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-09-10 12:36:12 +0000 |
commit | bd34923a11d9e36bb5045f75cf1b7bfd2d821d4d (patch) | |
tree | c790c9ad1e9eebfe48b6dc65fd0762c3ed0f42fd /src/buildstream/_message.py | |
parent | 3db8f6e6ce1740c42331656da8cc5de9cd4e6db3 (diff) | |
download | buildstream-bd34923a11d9e36bb5045f75cf1b7bfd2d821d4d.tar.gz |
_message.py: Use bool for sandbox Message() parameter
The sandbox member of BstError is a bool, which is then used as
an arg for the message.
Diffstat (limited to 'src/buildstream/_message.py')
-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() |