def config_dict_changed(module):
 current_config = module.custom_current_config.get('config')
 desired_config = module.custom_desired_config.get('config')
 return (current_config != desired_config)

def config_dict_changed ( module ) : current_config = module . custom_current_config . get ( 'config' ) desired_config = module . custom_desired_config . get ( 'config' ) return ( current_config != desired_config )
return true if config dict in hash is different between desired and current config .