Skip to content

Commit 1638afb

Browse files
gchiapparamrDzurb
andauthored
correct ARM architecture detection regex in Docker image build for opctl (#1106)
Signed-off-by: Gonzalo Chiappara <gchiapp@gmail.com> Co-authored-by: Dmitrii Cherkasov <dmitrii.cherkasov@oracle.com>
1 parent afba77e commit 1638afb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ads/opctl/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def build_image(image_type: str, gpu: bool = False) -> None:
154154
# Just get the manufacturer of the processors
155155
manufacturer = cpuinfo.get_cpu_info().get("brand_raw")
156156
arch = (
157-
"arm" if re.search("apple m\d ", manufacturer, re.IGNORECASE) else "other"
157+
"arm" if re.search("apple m\d", manufacturer, re.IGNORECASE) else "other"
158158
)
159159
print(f"The local machine's platform is {arch}.")
160160
image, dockerfile, target = _get_image_name_dockerfile_target(

0 commit comments

Comments
 (0)