ansible-core 2.17.0rc1__py3-none-any.whl → 2.17.0rc2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ansible-core might be problematic. Click here for more details.

ansible/cli/doc.py CHANGED
@@ -1296,14 +1296,15 @@ class DocCLI(CLI, RoleMixin):
1296
1296
 
1297
1297
  if doc.get('description'):
1298
1298
  if isinstance(doc['description'], list):
1299
- desc = " ".join(doc['description'])
1299
+ descs = doc['description']
1300
1300
  else:
1301
- desc = doc['description']
1302
- text.append("%s" % DocCLI.warp_fill(DocCLI.tty_ify(desc), limit, initial_indent=opt_indent, subsequent_indent=opt_indent))
1301
+ descs = [doc['description']]
1302
+ for desc in descs:
1303
+ text.append("%s" % DocCLI.warp_fill(DocCLI.tty_ify(desc), limit, initial_indent=opt_indent, subsequent_indent=opt_indent))
1303
1304
  text.append('')
1304
1305
 
1305
1306
  if doc.get('options'):
1306
- text.append(_format("Options", 'bold') + " (%s inicates it is required):" % ("=" if C.ANSIBLE_NOCOLOR else 'red'))
1307
+ text.append(_format("Options", 'bold') + " (%s indicates it is required):" % ("=" if C.ANSIBLE_NOCOLOR else 'red'))
1307
1308
  DocCLI.add_fields(text, doc.pop('options'), limit, opt_indent)
1308
1309
 
1309
1310
  if doc.get('attributes', False):
@@ -1355,12 +1356,13 @@ class DocCLI(CLI, RoleMixin):
1355
1356
  text.append("> %s %s (%s)" % (plugin_type.upper(), _format(doc.pop('plugin_name'), 'bold'), doc.pop('filename')))
1356
1357
 
1357
1358
  if isinstance(doc['description'], list):
1358
- desc = " ".join(doc.pop('description'))
1359
+ descs = doc.pop('description')
1359
1360
  else:
1360
- desc = doc.pop('description')
1361
+ descs = [doc.pop('description')]
1361
1362
 
1362
1363
  text.append('')
1363
- text.append(DocCLI.warp_fill(DocCLI.tty_ify(desc), limit, initial_indent=base_indent, subsequent_indent=base_indent))
1364
+ for desc in descs:
1365
+ text.append(DocCLI.warp_fill(DocCLI.tty_ify(desc), limit, initial_indent=base_indent, subsequent_indent=base_indent))
1364
1366
 
1365
1367
  if display.verbosity > 0:
1366
1368
  doc['added_in'] = DocCLI._format_version_added(doc.pop('version_added', 'historical'), doc.pop('version_added_collection', 'ansible-core'))
@@ -1385,7 +1387,7 @@ class DocCLI(CLI, RoleMixin):
1385
1387
 
1386
1388
  if doc.get('options', False):
1387
1389
  text.append("")
1388
- text.append(_format("OPTIONS", 'bold') + " (%s inicates it is required):" % ("=" if C.ANSIBLE_NOCOLOR else 'red'))
1390
+ text.append(_format("OPTIONS", 'bold') + " (%s indicates it is required):" % ("=" if C.ANSIBLE_NOCOLOR else 'red'))
1389
1391
  DocCLI.add_fields(text, doc.pop('options'), limit, opt_indent, man=(display.verbosity == 0))
1390
1392
 
1391
1393
  if doc.get('attributes', False):
@@ -17,6 +17,6 @@
17
17
 
18
18
  from __future__ import annotations
19
19
 
20
- __version__ = '2.17.0rc1'
20
+ __version__ = '2.17.0rc2'
21
21
  __author__ = 'Ansible, Inc.'
22
22
  __codename__ = "Gallows Pole"
ansible/modules/uri.py CHANGED
@@ -107,14 +107,15 @@ options:
107
107
  default: no
108
108
  follow_redirects:
109
109
  description:
110
- - Whether or not the URI module should follow redirects. V(all) will follow all redirects.
111
- V(safe) will follow only "safe" redirects, where "safe" means that the client is only
112
- doing a GET or HEAD on the URI to which it is being redirected. V(none) will not follow
113
- any redirects. Note that V(true) and V(false) choices are accepted for backwards compatibility,
114
- where V(true) is the equivalent of V(all) and V(false) is the equivalent of V(safe). V(true) and V(false)
115
- are deprecated and will be removed in some future version of Ansible.
110
+ - Whether or not the URI module should follow redirects.
111
+ choices:
112
+ all: Will follow all redirects.
113
+ none: Will not follow any redirects.
114
+ safe: Only redirects doing GET or HEAD requests will be followed.
115
+ urllib2: Defer to urllib2 behavior (As of writing this follows HTTP redirects).
116
+ 'no': (DEPRECATED, will be removed in the future version) alias of V(none).
117
+ 'yes': (DEPRECATED, will be removed in the future version) alias of V(all).
116
118
  type: str
117
- choices: ['all', 'no', 'none', 'safe', 'urllib2', 'yes']
118
119
  default: safe
119
120
  creates:
120
121
  description:
@@ -13,7 +13,7 @@ description:
13
13
  underlying transport but instead runs in a PowerShell interpreter.
14
14
  version_added: "2.7"
15
15
  requirements:
16
- - pypsrp>=0.4.0 (Python library)
16
+ - pypsrp>=0.4.0, <1.0.0 (Python library)
17
17
  extends_documentation_fragment:
18
18
  - connection_pipelining
19
19
  options:
@@ -99,12 +99,12 @@ options:
99
99
  - section: url_lookup
100
100
  key: follow_redirects
101
101
  choices:
102
- - urllib2
103
- - all
104
- - 'yes'
105
- - safe
106
- - none
107
- - 'no'
102
+ all: Will follow all redirects.
103
+ none: Will not follow any redirects.
104
+ safe: Only redirects doing GET or HEAD requests will be followed.
105
+ urllib2: Defer to urllib2 behavior (As of writing this follows HTTP redirects).
106
+ 'no': (DEPRECATED, will be removed in the future version) alias of V(none).
107
+ 'yes': (DEPRECATED, will be removed in the future version) alias of V(all).
108
108
  use_gssapi:
109
109
  description:
110
110
  - Use GSSAPI handler of requests
ansible/release.py CHANGED
@@ -17,6 +17,6 @@
17
17
 
18
18
  from __future__ import annotations
19
19
 
20
- __version__ = '2.17.0rc1'
20
+ __version__ = '2.17.0rc2'
21
21
  __author__ = 'Ansible, Inc.'
22
22
  __codename__ = "Gallows Pole"
ansible/utils/display.py CHANGED
@@ -451,7 +451,7 @@ class Display(metaclass=Singleton):
451
451
 
452
452
  def _log(self, msg: str, color: str | None = None, caplevel: int | None = None):
453
453
 
454
- if caplevel is None or self.log_verbosity > caplevel:
454
+ if logger and (caplevel is None or self.log_verbosity > caplevel):
455
455
  msg2 = msg.lstrip('\n')
456
456
 
457
457
  lvl = logging.INFO
@@ -462,6 +462,7 @@ class Display(metaclass=Singleton):
462
462
  except KeyError:
463
463
  # this should not happen, but JIC
464
464
  raise AnsibleAssertionError('Invalid color supplied to display: %s' % color)
465
+
465
466
  # actually log
466
467
  logger.log(lvl, msg2)
467
468
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ansible-core
3
- Version: 2.17.0rc1
3
+ Version: 2.17.0rc2
4
4
  Summary: Radically simple IT automation
5
5
  Home-page: https://ansible.com/
6
6
  Author: Ansible, Inc.
@@ -3,13 +3,13 @@ ansible/__main__.py,sha256=EnLcULXNtSXkuJ8igEHPPLBTZKAwqXv4PvMEhvzp2Oo,1430
3
3
  ansible/constants.py,sha256=vRwEcoynqtuKDPKsxKUY94XzrTSV3J0y1slb907DioU,9140
4
4
  ansible/context.py,sha256=oKYyfjfWpy8vDeProtqfnqSmuij_t75_5e5t0U_hQ1g,1933
5
5
  ansible/keyword_desc.yml,sha256=vE9joFgSeHR4Djl7Bd-HHVCrGByRCrTUmWYZ8LKPZKk,7412
6
- ansible/release.py,sha256=V3ZaI78P9iI1sYQQWErIjJjq0faSHe5D6OXh3C-Vv1k,835
6
+ ansible/release.py,sha256=grMBcL2FJJlTs0BXFMNu_bgy_-y625b3VRpw0HD9G68,835
7
7
  ansible/_vendor/__init__.py,sha256=2QBeBwT7uG7M3Aw-pIdCpt6XPtHMCpbEKfACYKA7xIg,2033
8
8
  ansible/cli/__init__.py,sha256=fzgR82NIGBH3GujIMehhAaP4KYszn4uztuCaFYRUpGk,28718
9
9
  ansible/cli/adhoc.py,sha256=quJ9WzRzf3dz_dtDGmahNMffqyNVy1jzQCMo21YL5Qg,8194
10
10
  ansible/cli/config.py,sha256=54IEhW7pH5bpWB7u1abEh-4zjU2xqhB0nQi5dHGBZSY,22663
11
11
  ansible/cli/console.py,sha256=GOdaJfy0NtBIo4HUom4V4VrcrmLiBYcaSBZgbmAP9Ss,21987
12
- ansible/cli/doc.py,sha256=kjyJlvlWwrE87I9TT0KT_XEoaltXqDPtBJHHBbGr1QU,69602
12
+ ansible/cli/doc.py,sha256=WM-LAlsVREtyppuYKQDF3E6EDnhtRsrGItQSxXz1rjI,69662
13
13
  ansible/cli/galaxy.py,sha256=E9llaIyZEbfFl9j2SEbu74Gghpt6x6Egz1CwtqPw_2g,95494
14
14
  ansible/cli/inventory.py,sha256=bVT2FRQLSab_vDqw_vTMLpxzd2HYW1KDslsEb6gqFSI,16771
15
15
  ansible/cli/playbook.py,sha256=d0x_X0BXjxYjPJ-qc6JcyGxR6IzxdvnSjoT4tUtaGKQ,10865
@@ -140,7 +140,7 @@ ansible/inventory/host.py,sha256=PDb5OTplhfpUIvdHiP2BckUOB1gUl302N-3sW0_sTyg,503
140
140
  ansible/inventory/manager.py,sha256=45mHgZTAkQ3IjAtrgsNzJXvynC-HIEor-JJE-V3xXN4,29454
141
141
  ansible/module_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
142
142
  ansible/module_utils/_text.py,sha256=VkWgAnSNVCbTQqZgllUObBFsH3uM4EUW5srl1UR9t1g,544
143
- ansible/module_utils/ansible_release.py,sha256=V3ZaI78P9iI1sYQQWErIjJjq0faSHe5D6OXh3C-Vv1k,835
143
+ ansible/module_utils/ansible_release.py,sha256=grMBcL2FJJlTs0BXFMNu_bgy_-y625b3VRpw0HD9G68,835
144
144
  ansible/module_utils/api.py,sha256=DWIuLW5gDWuyyDHLLgGnub42Qa8kagDdkf1xDeLAFl4,5784
145
145
  ansible/module_utils/basic.py,sha256=1BHf9_6SsFlfeTcYlOqOzbnITG3x8galaBcPm8ec6nE,85703
146
146
  ansible/module_utils/connection.py,sha256=q_BdUaST6E44ltHsWPOFOheXK9vKmzaJvP-eQOrOrmE,8394
@@ -339,7 +339,7 @@ ansible/modules/sysvinit.py,sha256=lW3t6HBH_lCcBi9mBhRgiYmeADIu0Xbaf9uM_b05FH0,1
339
339
  ansible/modules/tempfile.py,sha256=lA9e8lyFXf9J5ud0R6Jkt8sIFyRcOwzhc9Jz-5_HOZQ,3627
340
340
  ansible/modules/template.py,sha256=D1sm36GB_mEimH0CfWq1cJ4w1eRvpcsHwZ-ufVzC_Gs,4537
341
341
  ansible/modules/unarchive.py,sha256=hlRAn2Ma36rmeQ4-OldGLPnHu3w8rlxlvLovQ2pYg5c,44880
342
- ansible/modules/uri.py,sha256=gO-ALWZ1T7sp9mJk78Jnmku2KXnhMH06ANfevGA9oX4,28368
342
+ ansible/modules/uri.py,sha256=WgJA04YvgKTpQsMJFWAg9ITbj8cpIYwZD_tPlD_hcz4,28203
343
343
  ansible/modules/user.py,sha256=W53gNWD8ymV5o7j80-ROHMfkwG4IPVLuQ2r5Efk98_U,118055
344
344
  ansible/modules/validate_argument_spec.py,sha256=epLh4EUaoDLvhdVszRM68Q2QdicK-3jxhMA530dQaIE,3044
345
345
  ansible/modules/wait_for.py,sha256=VXFFcYG88EJVXnrJfa0fzh9rD_2luSty__qdzRuTAQE,27322
@@ -437,7 +437,7 @@ ansible/plugins/cliconf/__init__.py,sha256=NlIs8a21RJSPOmoO-fVSJtO4OGNPxCAMFntDZ
437
437
  ansible/plugins/connection/__init__.py,sha256=7B9UmhcM4divUhg-RsurhOOGQiCVeLGGh0Zp_zCvK4w,17947
438
438
  ansible/plugins/connection/local.py,sha256=A-XQy_wIky16xrgkm2KW2jyZLpzmcUPjNOPtoQQnDJg,8339
439
439
  ansible/plugins/connection/paramiko_ssh.py,sha256=NnCHPiVZTzJVu0EQ4p4g0k0jxUgEHC9PHvuD6IFZ6O4,30045
440
- ansible/plugins/connection/psrp.py,sha256=WRpeCYp77UZpjp9qRahgn-He-Kq-gp2Aa52aBWs2e0U,36732
440
+ ansible/plugins/connection/psrp.py,sha256=1wihaS4h7-Yq2SVsQ9KI1ipxn7Jg9fvzmf7q7KannOw,36740
441
441
  ansible/plugins/connection/ssh.py,sha256=zTaDGv23CmIvrXqSkMmoosLnFecszJlaFl1fDD8BOMA,62811
442
442
  ansible/plugins/connection/winrm.py,sha256=x9FHPRkEyI_ua4PUPbYVb7_joyMJYEiGSv45jxxkNTQ,40599
443
443
  ansible/plugins/doc_fragments/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -568,7 +568,7 @@ ansible/plugins/lookup/subelements.py,sha256=2dZdjfOe0_yNkYMQRDWl86eFyt4YqEm1mOY
568
568
  ansible/plugins/lookup/template.py,sha256=xFYWKY808hHPj7nJbaLM2mZro79p6TjpFXyAcRK4AR0,7112
569
569
  ansible/plugins/lookup/together.py,sha256=T4J2miqHTnrDP6-CrlJ3wgI0UgyZyYVRVrDTWx3olpY,2110
570
570
  ansible/plugins/lookup/unvault.py,sha256=5LU8Lf7Gx0yRh8z0u1giSXkd93pkSZ34ibkoQnHCsyw,2049
571
- ansible/plugins/lookup/url.py,sha256=JteVmGKClq0fI29W6CKbnStNe3TxWWdAplTjRbuaPlU,9068
571
+ ansible/plugins/lookup/url.py,sha256=8JFMlk9diqsboHr1ArYGudsapPBP995maJdzHlair74,9378
572
572
  ansible/plugins/lookup/varnames.py,sha256=h5ZAHOx8MlEvv466AirXCaGZ5DeH95evGb2he8_aKqA,2330
573
573
  ansible/plugins/lookup/vars.py,sha256=eXVZdwumdcp3ajaDX7JyIYeGvQ6L-HxHGfnob9Pnkg8,3424
574
574
  ansible/plugins/netconf/__init__.py,sha256=50w1g2rhUo6L-xtiMT20jbR8WyOnhwNSRd2IRNSjNX4,17094
@@ -645,7 +645,7 @@ ansible/utils/_junit_xml.py,sha256=5op7cjGK7Et0OSjcAAuUEqNWNAv5ZoNI0rkLx2ERXwM,8
645
645
  ansible/utils/cmd_functions.py,sha256=VmGs5ntdVaaqAJHcCTpGG3rYAAcTNl1b2-Iw4YVOt9Y,2180
646
646
  ansible/utils/color.py,sha256=LjJO_12OsJiavBxwSDVXtLxdTzdwd2YWUp1OJ6KcM2g,4057
647
647
  ansible/utils/context_objects.py,sha256=vYulSJkzR3zxsQF_6_AqbPCCMy8WGC5dSqLFXJZqGIo,3034
648
- ansible/utils/display.py,sha256=lwcxAZDBDsSitFXqOde7QwQXoW2QkN-ZHIMw9ms2rqY,32080
648
+ ansible/utils/display.py,sha256=Ld3dNZTvvLRZmPCq191Iu-t4EIzoIP1fY_-X7qcoSts,32094
649
649
  ansible/utils/encrypt.py,sha256=MU0teLATt7qtTwk-y809H5HApafSl2QMW1INWIUL3T4,7221
650
650
  ansible/utils/fqcn.py,sha256=Jx5SwYzlbMZ-SlkjyKkM4pCe5jIyXeeo62BU1msUunU,1215
651
651
  ansible/utils/galaxy.py,sha256=wQ3s8Mr7Ib0C2ou1SloA76ZOraJr48ADZZf_6vaNYdg,3830
@@ -678,7 +678,7 @@ ansible/vars/hostvars.py,sha256=rzxFov5bLpRtCSAFJswuRSCBx0DMNPnMJwkFKepvMuY,4764
678
678
  ansible/vars/manager.py,sha256=ujVDQXWvy8BihIxGzBPX6fMeUl2AlclkwadKMo6VjSk,38583
679
679
  ansible/vars/plugins.py,sha256=RsRU9fiLcJwPIAyTYnmVZglsiEOMCIgQskflavE-XnE,4546
680
680
  ansible/vars/reserved.py,sha256=kZiQMPvaFin35006gLwDpX16w-9xlu6EaL4LSTKP40U,2531
681
- ansible_core-2.17.0rc1.data/scripts/ansible-test,sha256=dyY2HtRZotRQO3b89HGXY_KnJgBvgsm4eLIe4B2LUoA,1637
681
+ ansible_core-2.17.0rc2.data/scripts/ansible-test,sha256=dyY2HtRZotRQO3b89HGXY_KnJgBvgsm4eLIe4B2LUoA,1637
682
682
  ansible_test/__init__.py,sha256=20VPOj11c6Ut1Av9RaurgwJvFhMqkWG3vAvcCbecNKw,66
683
683
  ansible_test/_data/ansible.cfg,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
684
684
  ansible_test/_data/coveragerc,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -702,7 +702,7 @@ ansible_test/_data/pytest/config/default.ini,sha256=3f5D0MA9l2RafBBriLaG2eH3ePHP
702
702
  ansible_test/_data/pytest/config/legacy.ini,sha256=WBpVsIeHL2szv5oFznM2WXYizBgYhBrivpvQliYUKTw,85
703
703
  ansible_test/_data/requirements/ansible-test.txt,sha256=YnGKjOaFRegMcwnUgWuHcCr8rfb4kJVoHNaQ5BxFHvw,260
704
704
  ansible_test/_data/requirements/ansible.txt,sha256=SoGhVAYgDYWYKwMSH0g8WsCQczVft6Obb5ePPMQPRTU,838
705
- ansible_test/_data/requirements/constraints.txt,sha256=MzqRG9eh7CYXv3K8HSX9lQ6tNzO-_WphuA9z7pb0v80,821
705
+ ansible_test/_data/requirements/constraints.txt,sha256=XzihQc6_VxMGAGU5zX2odpKYJVEvCzaOO18pEm2G9Zw,893
706
706
  ansible_test/_data/requirements/sanity.ansible-doc.in,sha256=9KRJJ-n37IMHpLJLv_VmFOhYF8Y3Vnk6eRyhwVKzC8A,108
707
707
  ansible_test/_data/requirements/sanity.ansible-doc.txt,sha256=rmCIJGr5BK2pq84QLbO3uDudXkX5Q1Be4B19kihcK-E,169
708
708
  ansible_test/_data/requirements/sanity.changelog.in,sha256=gWVsUch6Jxrq55MEutB-b9GB6Pp2PL-FqM84v-aI4Ng,78
@@ -979,9 +979,9 @@ ansible_test/config/cloud-config-vultr.ini.template,sha256=XLKHk3lg_8ReQMdWfZzhh
979
979
  ansible_test/config/config.yml,sha256=wb3knoBmZewG3GWOMnRHoVPQWW4vPixKLPMNS6vJmTc,2620
980
980
  ansible_test/config/inventory.networking.template,sha256=bFNSk8zNQOaZ_twaflrY0XZ9mLwUbRLuNT0BdIFwvn4,1335
981
981
  ansible_test/config/inventory.winrm.template,sha256=1QU8W-GFLnYEw8yY9bVIvUAVvJYPM3hyoijf6-M7T00,1098
982
- ansible_core-2.17.0rc1.dist-info/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
983
- ansible_core-2.17.0rc1.dist-info/METADATA,sha256=6wgPzc0F9QJGZxMPkGJoH3JeE2EiCaK2qLic9wu02Dc,6948
984
- ansible_core-2.17.0rc1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
985
- ansible_core-2.17.0rc1.dist-info/entry_points.txt,sha256=0mpmsrIhODChxKl3eS-NcVQCaMetBn8KdPLtVxQgR64,453
986
- ansible_core-2.17.0rc1.dist-info/top_level.txt,sha256=IFbRLjAvih1DYzJWg3_F6t4sCzEMxRO7TOMNs6GkYHo,21
987
- ansible_core-2.17.0rc1.dist-info/RECORD,,
982
+ ansible_core-2.17.0rc2.dist-info/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
983
+ ansible_core-2.17.0rc2.dist-info/METADATA,sha256=iYAzAFo8Bkvga6-m7XliJdPukm6wvA_gh-woWz1NNPg,6948
984
+ ansible_core-2.17.0rc2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
985
+ ansible_core-2.17.0rc2.dist-info/entry_points.txt,sha256=0mpmsrIhODChxKl3eS-NcVQCaMetBn8KdPLtVxQgR64,453
986
+ ansible_core-2.17.0rc2.dist-info/top_level.txt,sha256=IFbRLjAvih1DYzJWg3_F6t4sCzEMxRO7TOMNs6GkYHo,21
987
+ ansible_core-2.17.0rc2.dist-info/RECORD,,
@@ -1,5 +1,6 @@
1
1
  # do not add a cryptography or pyopenssl constraint to this file, they require special handling, see get_cryptography_requirements in python_requirements.py
2
2
  # do not add a coverage constraint to this file, it is handled internally by ansible-test
3
+ pypsrp < 1.0.0 # in case the next major version is too big of a change
3
4
  pywinrm >= 0.3.0 ; python_version < '3.11' # message encryption support
4
5
  pywinrm >= 0.4.3 ; python_version >= '3.11' # support for Python 3.11
5
6
  pytest >= 4.5.0 # pytest 4.5.0 added support for --strict-markers