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:
Sergey Kraynev 2016-08-31 04:32:47 -04:00
parent e3d19ee26c
commit 2c5fdb4194
1 changed files with 2 additions and 2 deletions

View File

@ -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: