[ARVADOS] updated: f2019e7042d12088bce45f8c2ad52ec600a4076d
Git user
git at public.curoverse.com
Wed Aug 16 12:22:51 EDT 2017
Summary of changes:
services/nodemanager/arvnodeman/computenode/driver/ec2.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
via f2019e7042d12088bce45f8c2ad52ec600a4076d (commit)
from 74e03b2190fea52b3ea5800c50eca55b6e50b220 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit f2019e7042d12088bce45f8c2ad52ec600a4076d
Author: Lucas Di Pentima <ldipentima at veritasgenetics.com>
Date: Wed Aug 16 13:22:15 2017 -0300
12055: Code simplification.
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima at veritasgenetics.com>
diff --git a/services/nodemanager/arvnodeman/computenode/driver/ec2.py b/services/nodemanager/arvnodeman/computenode/driver/ec2.py
index 846aa6c..d204d7a 100644
--- a/services/nodemanager/arvnodeman/computenode/driver/ec2.py
+++ b/services/nodemanager/arvnodeman/computenode/driver/ec2.py
@@ -53,8 +53,7 @@ class ComputeNodeDriver(BaseComputeNodeDriver):
for key, value in list_kwargs.iteritems()
if key.startswith('tag:')}
# Tags are assigned at instance creation time
- if not 'ex_metadata' in create_kwargs:
- create_kwargs['ex_metadata'] = {}
+ create_kwargs.setdefault('ex_metadata', {})
create_kwargs['ex_metadata'].update(self.tags)
super(ComputeNodeDriver, self).__init__(
auth_kwargs, {'ex_filters': list_kwargs}, create_kwargs,
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list