Remove print statements

Change-Id: I40a805bee3f10d5989188971423cbb6c07f740c8
This commit is contained in:
Arata Notsu
2013-04-02 10:45:45 +09:00
parent 3b428d8028
commit 994c69ac9e
4 changed files with 3 additions and 4 deletions

View File

@@ -176,7 +176,6 @@ class BareMetalNodeController(wsgi.Controller):
authorize(context)
self._check_node_exists(context, id)
body = body['remove_interface']
print "body(%s)" % body
if_id = body.get('id')
address = body.get('address')
if not if_id and not address:

View File

@@ -198,7 +198,7 @@ class MiniDNS(dns_driver.DNSDriver):
entry['domain'] != fqdomain.lower()):
outfile.write(line)
else:
print "deleted %s" % entry
LOG.info(_("deleted %s"), entry)
deleted = True
infile.close()
outfile.close()

View File

@@ -142,7 +142,8 @@ def vpn_ping(address, port, timeout=0.05, session_id=None):
sock.close()
fmt = '!BQxxxxxQxxxx'
if len(received) != struct.calcsize(fmt):
print struct.calcsize(fmt)
LOG.warn(_('Expected to receive %(exp)s bytes, but actually %(act)s') %
dict(exp=struct.calcsize(fmt), act=len(received)))
return False
(identifier, server_sess, client_sess) = struct.unpack(fmt, received)
if identifier == 0x40 and client_sess == session_id:

View File

@@ -313,7 +313,6 @@ class VMOps(object):
def suspend(self, instance):
"""Suspend the specified instance."""
print instance
LOG.debug(_("Suspend instance"), instance=instance)
self._set_vm_state(instance["name"],
constants.HYPERV_VM_STATE_SUSPENDED)