Skip to content

Commit

Permalink
removed last time udpated form metadta
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Sep 17, 2024
1 parent 02f0910 commit f3e7b37
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 67 deletions.
3 changes: 1 addition & 2 deletions portal_client.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ struct VirtualMachineServerMetadata {
1: required string ip,
2: required string hashed_auth_token,
3: optional UserData userdata,
4: required i64 last_time_updated,
}


Expand Down Expand Up @@ -574,7 +573,7 @@ service VirtualMachineService {
) throws (1:BackendNotFoundException b,2:DefaultException d)


void set_metadata_server_data(1:string ip,2:string endpoint,3:VirtualMachineServerMetadata metadata) throws (1:MetadataServerNotAvailableException m,2:MetadataServerNotAllowedException b)
void set_metadata_server_data(1:string ip,3:VirtualMachineServerMetadata metadata) throws (1:MetadataServerNotAvailableException m,2:MetadataServerNotAllowedException b)
void remove_metadata_server_data(1:string ip) throws (1:MetadataServerNotAvailableException m,2:MetadataServerNotAllowedException b)
void is_metadata_server_available() throws (1:MetadataServerNotAvailableException m,2:MetadataServerNotAllowedException b)

Expand Down
9 changes: 4 additions & 5 deletions simple_vm_client/VirtualMachineService-remote
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == "--help":
print(" get_backends_by_template(string template)")
print(" Backend get_backend_by_id(i64 id)")
print(
" void set_metadata_server_data(string ip, string endpoint, VirtualMachineServerMetadata metadata)"
" void set_metadata_server_data(string ip, VirtualMachineServerMetadata metadata)"
)
print(" void remove_metadata_server_data(string ip)")
print(" void is_metadata_server_available()")
Expand Down Expand Up @@ -551,14 +551,13 @@ elif cmd == "get_backend_by_id":
)

elif cmd == "set_metadata_server_data":
if len(args) != 3:
print("set_metadata_server_data requires 3 args")
if len(args) != 2:
print("set_metadata_server_data requires 2 args")
sys.exit(1)
pp.pprint(
client.set_metadata_server_data(
args[0],
args[1],
eval(args[2]),
eval(args[1]),
)
)

Expand Down
43 changes: 6 additions & 37 deletions simple_vm_client/VirtualMachineService.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 0 additions & 23 deletions simple_vm_client/ttypes.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f3e7b37

Please sign in to comment.