fix pep8 w503 warning

This started to break the pep8 CI job lately.

Change-Id: I8bf22c4944d272ed31a3281fa6ef4ca087a13ae9
This commit is contained in:
Ilya Etingof 2018-04-14 16:49:20 +02:00
parent d27bcf030e
commit 3265d0002b
1 changed files with 9 additions and 5 deletions

View File

@ -249,11 +249,15 @@ def set_policy(policy):
0x10 if policy['enable'] else 0x00))
_append_to_command(cmd, _hex(policy['policy_id']))
# 0x10 is policy add flag
_append_to_command(cmd, _hex(TRIGGERS[policy['policy_trigger']] |
CPU_CORRECTION[policy['cpu_power_correction']]
| STORAGE[policy['storage']] | 0x10))
_append_to_command(cmd, _hex(ACTIONS[policy['action']] |
POWER_DOMAIN[policy['power_domain']]))
flags = TRIGGERS[policy['policy_trigger']]
flags |= CPU_CORRECTION[policy['cpu_power_correction']]
flags |= STORAGE[policy['storage']]
flags |= 0x10
_append_to_command(cmd, _hex(flags))
flags = ACTIONS[policy['action']]
flags |= POWER_DOMAIN[policy['power_domain']]
_append_to_command(cmd, _hex(flags))
if isinstance(policy['target_limit'], int):
limit = policy['target_limit']