Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Sep 25, 2024
1 parent 9787f5f commit 759ef32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/include/policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,9 @@ typedef struct Aerospike_JobConstants {
#define AEROSPIKE_JOB_CONSTANTS_ARR_SIZE \
(sizeof(aerospike_job_constants) / sizeof(AerospikeJobConstants))

as_status pyobject_to_policy_admin(as_error *err, PyObject *py_policy,
as_policy_admin *policy,
as_status pyobject_to_policy_admin(AerospikeClient *self, as_error *err,
PyObject *py_policy, as_policy_admin *policy,
as_policy_admin **policy_p,
as_policy_admin *config_admin_policy);

as_status pyobject_to_policy_apply(AerospikeClient *self, as_error *err,
Expand Down
4 changes: 2 additions & 2 deletions src/main/client/admin.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ PyObject *AerospikeClient_Admin_Create_User(AerospikeClient *self,
password = PyUnicode_AsUTF8(py_password);

// Convert python object to policy_admin
pyobject_to_policy_admin(&err, py_policy, &admin_policy,
&self->as->config.policies.admin);
pyobject_to_policy_admin(self, &err, py_policy, &admin_policy,
&admin_policy_p, &self->as->config.policies.admin);
if (err.code != AEROSPIKE_OK) {
goto CLEANUP;
}
Expand Down

0 comments on commit 759ef32

Please sign in to comment.