The real bug here is that api.Client().AddLocalCharm() uses utils.GetNonValidatingHTTPClient(). That bug has not been fixed, does need fixing and can be fixed.
The real bug here is that api.Client( ).AddLocalCharm () uses utils.GetNonVal idatingHTTPClie nt().
That bug has not been fixed, does need fixing and can be fixed.