Use six.StringIO

In links: http://pythonhosted.org/six/, we know 'cStringIO' is
a module of python 2.x, but in python3.x module 'io' has the
same function as 'cStringIO' in python2.x. So here we use
six.stringIO instead.

TrivialFix.

Change-Id: I8022b92b186e239cd76a36dab7766301bf96d2c4
This commit is contained in:
Lu lei 2016-08-29 10:28:28 +08:00
parent 4b7852096f
commit 46e8196fcf
1 changed files with 1 additions and 1 deletions

View File

@ -15,9 +15,9 @@
# limitations under the License.
from ConfigParser import ConfigParser
from cStringIO import StringIO
import inspect
import os
from six import StringIO
from ansible.plugins.action import ActionBase