mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
* Adds group_id to Group table * Adds inventory_group_id to Group table * Adds creation of inventory hosts and groups from the network UI * Changes network UI variables to be under awx key * Fixes variables initial value * Adds group membership association/disassociation * Removes items from the inventory toolbar when loaded by a snaphot * Adds nunjucks dependency to package.json * Adds templating to hosts * Adds templating for racks * Adds site templating * Adds group associations for sites * Squashes migrations for network_ui * Flake8 migrations * Changes reserved field type to device_type, group_type, and process_type * Allows blank values for all CharFields in network_ui models * Changes reserved field type to device_type, group_type, and process_type
7 lines
148 B
Python
7 lines
148 B
Python
# Copyright (c) 2017 Red Hat, Inc
|
|
|
|
|
|
def transform_dict(dict_map, d):
|
|
return {to_key: d[from_key] for from_key, to_key in dict_map.iteritems()}
|
|
|