Skip to content

Commit fc8762b

Browse files
author
Matt Land
committed
restore removal
1 parent f7c6c1d commit fc8762b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

deploylambda/deploylambda.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,12 @@ def _build_metadata(skeleton, config):
202202
except KeyError:
203203
del skeleton[config_key]
204204
# build our input data from file
205-
return dict(skeleton.items() + config.items())
206-
# pop this key if seen
207-
#if 'VpcId' in cli_input_json['VpcConfig']:
208-
# cli_input_json['VpcConfig'].pop('VpcId')
205+
# pop this sub-tree key if seen, its not permitted
206+
config = dict(skeleton.items() + config.items())
207+
if 'VpcId' in config['VpcConfig']:
208+
config['VpcConfig'].pop('VpcId')
209+
210+
return config
209211

210212
def update_metadata(self, path):
211213
"""get the current config"""

0 commit comments

Comments
 (0)