Skip to content

Commit

Permalink
Merge pull request #1578 from jluebbe/poll-on-add
Browse files Browse the repository at this point in the history
remote/exporter: poll resource on add
  • Loading branch information
Bastian-Krause authored Jan 24, 2025
2 parents 4f6a805 + 803f01a commit f81f479
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion labgrid/remote/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,10 @@ async def add_resource(self, group_name, resource_name, cls, params):
}
proxy_req = self.isolated
if issubclass(export_cls, ResourceExport):
group[resource_name] = export_cls(config, host=self.hostname, proxy=getfqdn(), proxy_required=proxy_req)
res = group[resource_name] = export_cls(
config, host=self.hostname, proxy=getfqdn(), proxy_required=proxy_req
)
res.poll()
else:
config["params"]["extra"] = {
"proxy": getfqdn(),
Expand Down

0 comments on commit f81f479

Please sign in to comment.