fixed vm name being set to "test"
This commit is contained in:
parent
cc8e8bbc60
commit
c9a6b90c3d
2 changed files with 3 additions and 3 deletions
|
|
@ -132,7 +132,7 @@ def build_vm():
|
|||
|
||||
password = getpass(f"Password for user {args.username}:")
|
||||
|
||||
data = graphql_query(client, vm_query)["data"]
|
||||
data = graphql_query(client, vm_query, variables={"name": args.vm_name})["data"]
|
||||
vm = data["vms"][0]
|
||||
|
||||
cpu_cores = int(float(vm["vcpus"]))
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
query vms {
|
||||
vms: virtual_machine_list(filters: {name: {exact: "test"}}) {
|
||||
query vms($name: String) {
|
||||
vms: virtual_machine_list(filters: {name: {exact: $name}}) {
|
||||
name
|
||||
id
|
||||
vcpus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue