src/rgw/setup/rgw.py
def _run_fetch_fid_cmd(fetch_fids_cmd: str, data_pod_hostname: str = None):
        """Run hctl fetch-fids command through SimpleProcess."""
        out, err, rc = SimpleProcess(fetch_fids_cmd).run()
        if rc != 0:
            if data_pod_hostname:
                Log.error(f'Unable to read fid information for hostname: '
                    f'{data_pod_hostname}. {err}')
                raise SetupError(rc, 'Unable to read fid information for hostname: '
                    '%s. %s', data_pod_hostname, err)
            else:
                Log.error(f'Unable to read fid information. {err}')
                raise SetupError(rc, 'Unable to read fid information. %s', err)

        decoded_out = json.loads(out.decode(const.UTF_ENCODING))

        return decoded_out
Run hctl fetch-fids command through SimpleProcess.
Run hctl fetch-fids command through SimpleProcess.
Run hctl fetch - fids command through SimpleProcess .
def _run_fetch_fid_cmd(fetch_fids_cmd: str, data_pod_hostname: str = None):
        out, err, rc = SimpleProcess(fetch_fids_cmd).run()
        if rc != 0:
            if data_pod_hostname:
                Log.error(f'Unable to read fid information for hostname: '
                    f'{data_pod_hostname}. {err}')
                raise SetupError(rc, 'Unable to read fid information for hostname: '
                    '%s. %s', data_pod_hostname, err)
            else:
                Log.error(f'Unable to read fid information. {err}')
                raise SetupError(rc, 'Unable to read fid information. %s', err)
        decoded_out = json.loads(out.decode(const.UTF_ENCODING))
        return decoded_out
def _run_fetch_fid_cmd ( fetch_fids_cmd : str , data_pod_hostname : str = None ) : out , err , rc = SimpleProcess ( fetch_fids_cmd ) . run ( ) if rc != 0 : if data_pod_hostname : Log . error ( f'Unable to read fid information for hostname: ' f'{data_pod_hostname}. {err}' ) raise SetupError ( rc , 'Unable to read fid information for hostname: ' '%s. %s' , data_pod_hostname , err ) else : Log . error ( f'Unable to read fid information. {err}' ) raise SetupError ( rc , 'Unable to read fid information. %s' , err ) decoded_out = json . loads ( out . decode ( const . UTF_ENCODING ) ) return decoded_out
Run hctl fetch-fids command through SimpleProcess.
Run hctl fetch - fids command through SimpleProcess .
"""Run hctl fetch-fids command through SimpleProcess."""
fetch_fids_cmd
str
data_pod_hostname
str