Skip to content

Commit dd69913

Browse files
committed
add tests
1 parent b653b34 commit dd69913

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/services/baremetal/easy_partitioning_source_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func TestAccDataSourceEasyParitioning_Basic(t *testing.T) {
2525
{
2626
Config: fmt.Sprintf(
2727
`
28-
data "scaleway_easy_partitioning" "test" {
28+
data "scaleway_baremetal_easy_partitioning" "test" {
2929
offer_id = "%s"
3030
os_id = "%s"
3131
}

internal/services/baremetal/helpers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,9 @@ func privateNetworkSetHash(v interface{}) int {
228228
func isOSCompatible(offer *baremetal.Offer, os *baremetal.OS) bool {
229229
for _, incompatible := range offer.IncompatibleOsIDs {
230230
if os.ID == incompatible {
231-
return true
231+
return false
232232
}
233233
}
234234

235-
return false
235+
return true
236236
}

0 commit comments

Comments
 (0)