Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.

Commit

Permalink
Use subprocess32 to match libcalico
Browse files Browse the repository at this point in the history
  • Loading branch information
Casey D committed Dec 9, 2015
1 parent 1b23ff3 commit 3b190ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions calico_kubernetes/calico_kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

from netaddr import IPAddress, IPNetwork, AddrFormatError
from policy import PolicyParser
from subprocess import check_output, CalledProcessError, check_call
from subprocess32 import check_output, CalledProcessError, check_call

import pycalico
from pycalico import netns
Expand Down Expand Up @@ -503,7 +503,7 @@ def _remove_endpoint(self, endpoint):
self._datastore_client.remove_workload(
HOSTNAME, ORCHESTRATOR_ID, self.docker_id)
except KeyError:
logger.exception("Failed to remove workload.")
logger.exception("Error removing workload.")
logger.info("Removed Calico endpoint %s", endpoint.endpoint_id)

def _validate_container_state(self, container_name):
Expand Down
2 changes: 1 addition & 1 deletion calico_kubernetes/tests/kube_plugin_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from netaddr import IPAddress, IPNetwork
from nose.tools import assert_equal, assert_true, assert_false, assert_raises
from nose_parameterized import parameterized
from subprocess import CalledProcessError
from subprocess32 import CalledProcessError

from calico_kubernetes import calico_kubernetes, logutils, policy
from pycalico.block import AlreadyAssignedError
Expand Down

0 comments on commit 3b190ea

Please sign in to comment.