def get_swift_info(admin=False, disallowed_sections=None):
 disallowed_sections = (disallowed_sections or [])
 info = dict(_swift_info)
 for section in disallowed_sections:
  key_to_pop = None
  sub_section_dict = info
  for sub_section in section.split('.'):
   if key_to_pop:
    sub_section_dict = sub_section_dict.get(key_to_pop, {})
    if (not isinstance(sub_section_dict, dict)):
     sub_section_dict = {}
     break
   key_to_pop = sub_section
  sub_section_dict.pop(key_to_pop, None)
 if admin:
  info['admin'] = dict(_swift_admin_info)
  info['admin']['disallowed_sections'] = list(disallowed_sections)
 return info

def get_swift_info ( admin = False , disallowed_sections = None ) : disallowed_sections = ( disallowed_sections or [ ] ) info = dict ( _swift_info ) for section in disallowed_sections : key_to_pop = None sub_section_dict = info for sub_section in section . split ( '.' ) : if key_to_pop : sub_section_dict = sub_section_dict . get ( key_to_pop , { } ) if ( not isinstance ( sub_section_dict , dict ) ) : sub_section_dict = { } break key_to_pop = sub_section sub_section_dict . pop ( key_to_pop , None ) if admin : info [ 'admin' ] = dict ( _swift_admin_info ) info [ 'admin' ] [ 'disallowed_sections' ] = list ( disallowed_sections ) return info
returns information about the swift cluster that has been previously registered with the register_swift_info call .