-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
This can't be meant how it's to be used is it?
$lb = $hetznerClient->loadBalancers()->getByName('...');
foreach($lb->targets as $target) {
$ip = new LoadBalancerTargetIp($target->ip->ip);
$lb->removeTarget('ip', $ip);
}Same for addTarget
How I expected it to work;
$lb = $hetznerClient->loadBalancers()->getByName('...');
foreach($lb->targets as $target) {
$lb->removeTarget($target);
# or maybe, or make it smart and work with $target only aswell
$lb->removeTargetByIp($target->ip);
}Also missing a removeTargets($targets);
Metadata
Metadata
Assignees
Labels
No labels