code: def _set_distro(self):
          
          if self.distro_name == 'sles':
              self.distro = SLES()
          elif self.distro_name == 'opensuse_leap':
              self.distro = openSUSE_Leap()
          else:
              raise IpaCloudException(
                  'Distribution: %s, not supported.' % self.distro_name
              )
docs: Determine distro for image and create instance of class.