mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #35452 from dirk-thomas/patch-1
move routine call out of try/except block
This commit is contained in:
commit
0708b546cb
@ -139,9 +139,10 @@ class Target(object):
|
||||
Execute the correct tgt_type routine and return
|
||||
'''
|
||||
try:
|
||||
return getattr(self, 'get_{0}'.format(self.tgt_type))()
|
||||
routine = getattr(self, 'get_{0}'.format(self.tgt_type))
|
||||
except AttributeError:
|
||||
return {}
|
||||
return routine()
|
||||
|
||||
def get_glob(self):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user