Unify getting properties for method of Server res
Method .get() allows to specify default value. Hovewer it's not used here and ad extra step, before execute simple call props[key]. Also other similar calls does not use .get(), so let's unify it too. Change-Id: I045a01f7eedbc8093f84c301adb8573aa812dae6
This commit is contained in:
parent
e3d19ee26c
commit
2c5fdb4194
@ -814,8 +814,8 @@ class Server(stack_user.StackUser, sh.SchedulerHintsMixin,
|
||||
self.SOFTWARE_CONFIG_TRANSPORT] == self.POLL_TEMP_URL
|
||||
|
||||
def transport_zaqar_message(self, props):
|
||||
return props.get(
|
||||
self.SOFTWARE_CONFIG_TRANSPORT) == self.ZAQAR_MESSAGE
|
||||
return props[
|
||||
self.SOFTWARE_CONFIG_TRANSPORT] == self.ZAQAR_MESSAGE
|
||||
|
||||
def get_software_config(self, ud_content):
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user