mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
xrange and izip_longest aren't available in vanilla python3 (#17226)
Fixes for these are either rewriting to get rid of the need for the functions or using six.moves to get equivalent functions for both python2 and python3
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
- name: generate random string
|
||||
command: python -c "import string,random; print ''.join(random.choice(string.ascii_lowercase) for _ in xrange(8));"
|
||||
command: python -c "import string,random; print ''.join(random.choice(string.ascii_lowercase) for _ in range(8));"
|
||||
register: random_string
|
||||
tags:
|
||||
- prepare
|
||||
|
||||
Reference in New Issue
Block a user