From 82d54067971419858b96905dad98878fe865ee54 Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Sun, 6 Dec 2009 17:39:52 +0100 Subject: [PATCH] Fix python plugin to use the new get functions instead of the get_ functions. --- bacula/src/filed/pythonfd.c | 4 ++-- bacula/src/stored/pythonsd.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bacula/src/filed/pythonfd.c b/bacula/src/filed/pythonfd.c index 77240409ee..a15864b28d 100644 --- a/bacula/src/filed/pythonfd.c +++ b/bacula/src/filed/pythonfd.c @@ -108,9 +108,9 @@ PyObject *job_getattr(PyObject *self, char *attrname) case 0: /* FD's name */ return Py_BuildValue((char *)getvars[i].fmt, my_name); case 1: /* level */ - return Py_BuildValue((char *)getvars[i].fmt, job_level_to_str(jcr->get_JobLevel())); + return Py_BuildValue((char *)getvars[i].fmt, job_level_to_str(jcr->getJobLevel())); case 2: /* type */ - return Py_BuildValue((char *)getvars[i].fmt, job_type_to_str(jcr->get_JobType())); + return Py_BuildValue((char *)getvars[i].fmt, job_type_to_str(jcr->getJobType())); case 3: /* JobId */ return Py_BuildValue((char *)getvars[i].fmt, jcr->JobId); case 4: /* Client */ diff --git a/bacula/src/stored/pythonsd.c b/bacula/src/stored/pythonsd.c index 16c1110b83..6b6b64c50d 100644 --- a/bacula/src/stored/pythonsd.c +++ b/bacula/src/stored/pythonsd.c @@ -118,9 +118,9 @@ PyObject *job_getattr(PyObject *self, char *attrname) case 1: /* SD's name */ return Py_BuildValue((char *)getvars[i].fmt, my_name); case 2: /* level */ - return Py_BuildValue((char *)getvars[i].fmt, job_level_to_str(jcr->get_JobLevel())); + return Py_BuildValue((char *)getvars[i].fmt, job_level_to_str(jcr->getJobLevel())); case 3: /* type */ - return Py_BuildValue((char *)getvars[i].fmt, job_type_to_str(jcr->get_JobType())); + return Py_BuildValue((char *)getvars[i].fmt, job_type_to_str(jcr->getJobType())); case 4: /* JobId */ return Py_BuildValue((char *)getvars[i].fmt, jcr->JobId); case 5: /* Client */ -- 2.39.5