Fix junos_logging integration test failure (#27605)

This commit is contained in:
Ganesh Nalawade 2017-08-02 02:12:09 +05:30 committed by GitHub
parent 9f57920eab
commit 6a0d9d1498

View file

@ -217,12 +217,14 @@ def main():
param_to_xpath_map.update([ param_to_xpath_map.update([
('name', {'xpath': 'name', 'is_key': True, 'top': dest}), ('name', {'xpath': 'name', 'is_key': True, 'top': dest}),
('facility', {'xpath': 'name', 'is_key': is_facility_key, 'top': field_top}), ('facility', {'xpath': 'name', 'is_key': is_facility_key, 'top': field_top}),
('level', {'xpath': module.params.get('level'), 'tag_only': True, 'top': field_top}),
('size', {'xpath': 'size', 'leaf_only': True, 'is_key': True, 'top': 'archive'}), ('size', {'xpath': 'size', 'leaf_only': True, 'is_key': True, 'top': 'archive'}),
('files', {'xpath': 'files', 'leaf_only': True, 'is_key': True, 'top': 'archive'}), ('files', {'xpath': 'files', 'leaf_only': True, 'is_key': True, 'top': 'archive'}),
('rotate_frequency', {'xpath': 'log-rotate-frequency', 'leaf_only': True}), ('rotate_frequency', {'xpath': 'log-rotate-frequency', 'leaf_only': True}),
]) ])
if module.params.get('level'):
param_to_xpath_map['level'] = {'xpath': module.params.get('level'), 'tag_only': True, 'top': field_top}
validate_param_values(module, param_to_xpath_map) validate_param_values(module, param_to_xpath_map)
want = map_params_to_obj(module, param_to_xpath_map) want = map_params_to_obj(module, param_to_xpath_map)