Update log message and some functions in kube.py

Change-Id: I6ce21d737fc341b8df820761c14ffc3b5e7151da
This commit is contained in:
Jay Lau 2014-12-22 01:38:24 -05:00
parent 0dc370a462
commit 878f330636
1 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,7 @@ class Handler(object):
return service
def service_update(self, context, service):
LOG.debug("service_create")
LOG.debug("service_update")
# trigger a kubectl command
status = self.kube_cli.service_update(service)
if not status:
@ -86,11 +86,11 @@ class Handler(object):
def pod_update(self, context, pod):
LOG.debug("pod_update")
# trigger a kubectl command
status = self.kube_cli.pod_create(pod)
status = self.kube_cli.pod_update(pod)
if not status:
return None
# call the pod object to persist in db
pod.create(context)
pod.refresh(context)
return pod
def pod_list(self, context):
@ -100,7 +100,7 @@ class Handler(object):
def pod_delete(self, context, pod):
LOG.debug("pod_delete ")
# trigger a kubectl command
status = self.kube_cli.service_delete(pod.uuid)
status = self.kube_cli.pod_delete(pod.uuid)
if not status:
return None
# call the pod object to persist in db