summaryrefslogtreecommitdiff
path: root/opendc/opendc-format
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2020-02-14 12:52:29 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-02-14 12:52:29 +0100
commit6ff2e43c55ffec98f444b9cd61b550fadd83633d (patch)
tree7541236d64de2eabfc92b5d1890e606aaea26230 /opendc/opendc-format
parentca862ddccec387dc7cb032d6c48206ce0d3cf37f (diff)
refactor: Rename Flavor to ServerFlavor
This change renames Flavor to ServerFlavor to be more indicative of its function. The Flavor name follows the naming of the OpenStack project.
Diffstat (limited to 'opendc/opendc-format')
-rw-r--r--opendc/opendc-format/src/main/kotlin/com/atlarge/opendc/format/environment/sc18/Sc18EnvironmentReader.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/opendc/opendc-format/src/main/kotlin/com/atlarge/opendc/format/environment/sc18/Sc18EnvironmentReader.kt b/opendc/opendc-format/src/main/kotlin/com/atlarge/opendc/format/environment/sc18/Sc18EnvironmentReader.kt
index 7436778f..4f7907c6 100644
--- a/opendc/opendc-format/src/main/kotlin/com/atlarge/opendc/format/environment/sc18/Sc18EnvironmentReader.kt
+++ b/opendc/opendc-format/src/main/kotlin/com/atlarge/opendc/format/environment/sc18/Sc18EnvironmentReader.kt
@@ -24,7 +24,7 @@
package com.atlarge.opendc.format.environment.sc18
-import com.atlarge.opendc.compute.core.Flavor
+import com.atlarge.opendc.compute.core.ServerFlavor
import com.atlarge.opendc.compute.core.ProcessingUnit
import com.atlarge.opendc.compute.metal.driver.FakeBareMetalDriver
import com.atlarge.opendc.compute.metal.service.ProvisioningService
@@ -69,7 +69,7 @@ class Sc18EnvironmentReader(input: InputStream, mapper: ObjectMapper = jacksonOb
else -> throw IllegalArgumentException("The cpu id $id is not recognized")
}
}
- val flavor = Flavor(cores)
+ val flavor = ServerFlavor(cores)
FakeBareMetalDriver(UUID.randomUUID(), "node-${counter++}", flavor)
}
}