code: def get(method, hmc, uri, uri_parms, logon_required):
          
          cpc_oid = uri_parms[0]
          query_str = uri_parms[1]
          try:
              cpc = hmc.cpcs.lookup_by_oid(cpc_oid)
          except KeyError:
              raise InvalidResourceError(method, uri)
          result_lpars = []
          if not cpc.dpm_enabled:
              filter_args = parse_query_parms(method, uri, query_str)
              for lpar in cpc.lpars.list(filter_args):
                  result_lpar = {}
                  for prop in lpar.properties:
                      if prop in ('object-uri', 'name', 'status'):
                          result_lpar[prop] = lpar.properties[prop]
                  result_lpars.append(result_lpar)
          return {'logical-partitions': result_lpars}
docs: Operation: List Logical Partitions of CPC (empty result in DPM
          mode.