File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
lib/fog/proxmox/compute/requests Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,11 @@ def create_term(path_params, body_params)
26
26
node = path_params [ :node ]
27
27
type = path_params [ :type ]
28
28
vmid = path_params [ :vmid ]
29
+ path = type && vmid ? "nodes/#{ node } /#{ type } /#{ vmid } /termproxy" : "nodes/#{ node } /termproxy"
29
30
request (
30
31
expects : [ 200 ] ,
31
32
method : 'POST' ,
32
- path : "nodes/ #{ node } / #{ type } / #{ vmid } /termproxy" ,
33
+ path : path ,
33
34
body : URI . encode_www_form ( body_params )
34
35
)
35
36
end
Original file line number Diff line number Diff line change @@ -26,10 +26,11 @@ def get_vnc(path_params, query_params)
26
26
node = path_params [ :node ]
27
27
type = path_params [ :type ]
28
28
vmid = path_params [ :vmid ]
29
+ path = type && vmid ? "nodes/#{ node } /#{ type } /#{ vmid } /vncwebsocket" : "nodes/#{ node } /vncwebsocket"
29
30
request (
30
31
expects : [ 101 , 200 ] ,
31
32
method : 'GET' ,
32
- path : "nodes/ #{ node } / #{ type } / #{ vmid } /vncwebsocket" ,
33
+ path : path ,
33
34
query : URI . encode_www_form ( query_params )
34
35
)
35
36
end
You can’t perform that action at this time.
0 commit comments