Skip to content

Commit

Permalink
Revert rename of python "create_file"
Browse files Browse the repository at this point in the history
  • Loading branch information
gnif committed Sep 19, 2018
1 parent bc0f734 commit 7caba51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/plugins/filed/python-fd.cc
Expand Up @@ -2058,9 +2058,9 @@ static bRC PyCreateFile(bpContext *ctx, struct restore_pkt *rp)
}

/*
* Lookup the CreateFile() function in the python module.
* Lookup the create_file() function in the python module.
*/
pFunc = PyDict_GetItemString(p_ctx->pDict, "CreateFile"); /* Borrowed reference */
pFunc = PyDict_GetItemString(p_ctx->pDict, "create_file"); /* Borrowed reference */
if (pFunc && PyCallable_Check(pFunc)) {
PyRestorePacket *pRestorePacket;
PyObject *pRetVal;
Expand All @@ -2082,7 +2082,7 @@ static bRC PyCreateFile(bpContext *ctx, struct restore_pkt *rp)
Py_DECREF(pRestorePacket);
}
} else {
Dmsg(ctx, debuglevel, "python-fd: Failed to find function named CreateFile()\n");
Dmsg(ctx, debuglevel, "python-fd: Failed to find function named create_file()\n");
}

return retval;
Expand Down

0 comments on commit 7caba51

Please sign in to comment.