cosalib/ibmcloud.py: move force flag inside upload command
The force flag was set for ore which is incorrect. it should be inside upload.
@@ -121,9 +121,6 @@ def ibmcloud_run_ore(build, args):
if args.log_level:
ore_args.extend(['--log-level', args.log_level])
- if args.force:
- ore_args.extend(['--force'])
-
region = "us-east"
if args.region is not None and len(args.region) > 0:
region = args.region[0]
@@ -153,6 +150,9 @@ def ibmcloud_run_ore(build, args):
if args.credentials_file is not None:
ore_args.extend(['--credentials-file', f"{args.credentials_file}"])
+ if args.force:
+ ore_args.extend(['--force'])
+
run_verbose(ore_args)
url_path = urllib.parse.quote((
f"s3.{region}.cloud-object-storage.appdomain.cloud/"
