- account['name'] = name
- account['account-type'] = account_type
- account['juju'] = {}
- account['juju']['user'] = user
- account['juju']['secret'] = secret
- account['juju']['ip-address'] = server
- postdata['account'].append(account)
-
- if 'success' not in self._http.post_cmd('api/config/{}config-agent'
- .format(self._client.so_rbac_project_path), postdata):
- raise ClientException("failed to create config agent {}"
- .format(name))
+ account["name"] = name
+ account["account-type"] = account_type
+ account["juju"] = {}
+ account["juju"]["user"] = user
+ account["juju"]["secret"] = secret
+ account["juju"]["ip-address"] = server
+ postdata["account"].append(account)
+
+ if "success" not in self._http.post_cmd(
+ "api/config/{}config-agent".format(self._client.so_rbac_project_path),
+ postdata,
+ ):
+ raise ClientException("failed to create config agent {}".format(name))