forked from 3wordchant/capsul-flask
trying to set up assignment of create operation
This commit is contained in:
@ -64,7 +64,8 @@ class CapsulFlaskHub(VirtualizationInterface):
|
||||
|
||||
def generic_operation(self, hosts: List[OnlineHost], payload: str, immediate_mode: bool) -> Tuple[int, List[HTTPResult]]:
|
||||
operation_id = get_model().create_operation(hosts, payload)
|
||||
results = current_app.config["HTTP_CLIENT"].make_requests_sync(hosts, payload)
|
||||
authorization_header = f"Bearer {current_app.config['HUB_TOKEN']}"
|
||||
results = current_app.config["HTTP_CLIENT"].make_requests_sync(hosts, payload, authorization_header=authorization_header)
|
||||
for i in range(len(hosts)):
|
||||
host = hosts[i]
|
||||
result = results[i]
|
||||
|
Reference in New Issue
Block a user