~tieong/pulumi-kimsufi

7eda4efae0012d46d8f7b1a690bd939079989155 — Thomas Ieong 1 year, 1 month ago 1ac60ab
Added gigabytes_to_bytes helper

See https://github.com/dmacvicar/terraform-provider-libvirt/pull/974
1 files changed, 3 insertions(+), 0 deletions(-)

M vm.py
M vm.py => vm.py +3 -0
@@ 8,6 8,9 @@ class VM(ComponentResource):
        # Change pkg something something to my state
        super().__init__('kimsufi-infra:pkg/vm:vm', name, None, opts)

def gigabytes_to_bytes(gigabytes: int):
    return gigabytes * 1_000_000_000

def new_vm(
        name: str,
        pool_name: Output[str],