kitchen-oci 1.24.0 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/kitchen/driver/oci/models/compute.rb +9 -1
- data/lib/kitchen/driver/oci_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db93079acea4739f9970e3a00627fe554719df5effc9e3b78d45287ea14fa730
|
4
|
+
data.tar.gz: 7dcc0d262fe162aa8db4cd351ff588a965f7560e01d9eccb5b7a6d901098faeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79774b7b41ea8e9ee93c70f708fd2ff4e2f64efda2037e6237445cabff246a42ea6250d548d3bea9d8e843aaded434eebc55bccae219675169e455d4f73ea314
|
7
|
+
data.tar.gz: 65907206e93b70b092a6a4154e5f1a3ce8490412950e41759856eb032940eed1fcf4227089db4bc4682711634276864af78eff5016915db2593f8c63793a86bc
|
@@ -67,7 +67,7 @@ module Kitchen
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def image_id_by_name
|
70
|
-
image_name =
|
70
|
+
image_name = image_name_conversion
|
71
71
|
image_list = images.select { |i| i.display_name.match(/#{image_name}/) }
|
72
72
|
raise "unable to find image_id" if image_list.empty?
|
73
73
|
|
@@ -77,6 +77,14 @@ module Kitchen
|
|
77
77
|
latest_image_id(image_list)
|
78
78
|
end
|
79
79
|
|
80
|
+
def image_name_conversion
|
81
|
+
image_name = config[:image_name].gsub(" ", "-")
|
82
|
+
if config[:shape] =~ /^VM\.Standard\.A\d+\.Flex$/ && !config[:image_name].include?("aarch64")
|
83
|
+
image_name = "#{image_name}-aarch64"
|
84
|
+
end
|
85
|
+
image_name
|
86
|
+
end
|
87
|
+
|
80
88
|
def filter_image_list(image_list, image_name)
|
81
89
|
image_list.select { |i| i.display_name.match(/#{image_name}-[0-9]{4}\.[0-9]{2}\.[0-9]{2}/) }
|
82
90
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-oci
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.25.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Pearson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-12-
|
12
|
+
date: 2024-12-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oci
|