use single line for-loop
This commit is contained in:
parent
b3a37da671
commit
981249daa1
1 changed files with 1 additions and 4 deletions
|
@ -1698,10 +1698,7 @@ class Container(DockerBaseClass):
|
|||
self.log('_get_expected_sysctls')
|
||||
if config_sysctls is None:
|
||||
return None
|
||||
result = dict()
|
||||
for key, value in config_sysctls.items():
|
||||
result[key] = str(value)
|
||||
return result
|
||||
return {key: str(value) for key, value in config_systctls.items()}
|
||||
|
||||
def _get_expected_cmd(self):
|
||||
self.log('_get_expected_cmd')
|
||||
|
|
Loading…
Reference in a new issue