code: def get_os_version_codename_swift(codename):
      '''Determine OpenStack version number of swift from codename.'''
      for k, v in six.iteritems(SWIFT_CODENAMES):
          if k == codename:
              return v[-1]
      e = 'Could not derive swift version for '\
          'codename: %s' % codename
      error_out(ef get_os_version_codename_swift(codename):
      '''Determine OpenStack version number of swift from codename.'''
      for k, v in six.iteritems(SWIFT_CODENAMES):
          if k == codename:
              return v[-1]
      e = 'Could not derive swift version for '\
          'codename: %s' % codename
      error_out(e)
docs: Determine OpenStack version number of swift from codename.