def oo_31_rpm_rename_conversion(rpms, openshift_version=None):
 if (not isinstance(rpms, list)):
  raise errors.AnsibleFilterError('failed expects to filter on a list')
 if ((openshift_version is not None) and (not isinstance(openshift_version, string_types))):
  raise errors.AnsibleFilterError('failed expects openshift_version to be a string')
 rpms_31 = []
 for rpm in rpms:
  if ('atomic' not in rpm):
   rpm = rpm.replace('openshift', 'atomic-openshift')
  if openshift_version:
   rpm = (rpm + openshift_version)
  rpms_31.append(rpm)
 return rpms_31

def oo_31_rpm_rename_conversion ( rpms , openshift_version = None ) : if ( not isinstance ( rpms , list ) ) : raise errors . AnsibleFilterError ( 'failed expects to filter on a list' ) if ( ( openshift_version is not None ) and ( not isinstance ( openshift_version , string_types ) ) ) : raise errors . AnsibleFilterError ( 'failed expects openshift_version to be a string' ) rpms_31 = [ ] for rpm in rpms : if ( 'atomic' not in rpm ) : rpm = rpm . replace ( 'openshift' , 'atomic-openshift' ) if openshift_version : rpm = ( rpm + openshift_version ) rpms_31 . append ( rpm ) return rpms_31
filters a list of 3 .