79260409

Date: 2024-12-07 10:25:33
Score: 1.5
Natty:
Report link

In the build_client function of cli_util.py, locate and fix the relevant part like this:

if 'connection_timeout' not in ctx.obj: ctx.obj['connection_timeout'] = 60 # Default to 60 seconds

if ctx.obj['connection_timeout']: if 'read_timeout' in ctx.obj and ctx.obj['read_timeout']: client.base_client.timeout = (ctx.obj['connection_timeout'], ctx.obj['read_timeout']) else: client.base_client.timeout = (ctx.obj['connection_timeout'], client.base_client.timeout[1]) else: if 'read_timeout' in ctx.obj and ctx.obj['read_timeout']: client.base_client.timeout = (client.base_client.timeout[0], ctx.obj['read_timeout'])

./create_backup_from_onprem --config-file /home/oracle/.oci/config --profile DEFAULT --display-name oradb --availability-domain $AD --edition ENTERPRISE_EDITION_HIGH_PERFORMANCE --opc-installer-dir /home/oracle/oci/opc_installer/opc_installer --tmp-dir /home/oracle/oci/onprem_upload --compartment-id

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Nishchal Junghare