Skip to content

Commit

Permalink
Bug fix: Allow explicitly setting ionice=None
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Apr 13, 2017
1 parent 1744183 commit 9ab0ee8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions executor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
from executor.process import ControllableProcess

# Semi-standard module versioning.
__version__ = '16.0'
__version__ = '16.0.1'

# Initialize a logger.
logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -677,7 +677,9 @@ def ionice(self):
@ionice.setter
def ionice(self, value):
"""Validate and set the I/O scheduling class."""
set_property(self, 'ionice', validate_ionice_class(value))
if value is not None:
validate_ionice_class(value)
set_property(self, 'ionice', value)

@property
def ionice_command(self):
Expand Down

0 comments on commit 9ab0ee8

Please sign in to comment.