Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0-rc0
1.0.2
23 changes: 23 additions & 0 deletions docs/release-notes-1.0.2.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Release 1.0.2
-------------

2023-06-30

New Modules
^^^^^^^^^^^

Enhancements
^^^^^^^^^^^^

Fixed
^^^^^

* Fixed a regression introduced by PR#220 (`220 <https://github.com/arista-eosplus/pyeapi/pull/220>`_)
Performance enchancement achieved with cacheing in PR#220 has a side effect: if configuration was read before the config
modifications made, then the modifications won't be reflected in the consecutive configuration reads (due to the cached read)
* Fixed all failing system tests, plus made some improvements in unit tests.

Known Caveats
^^^^^^^^^^^^^


1 change: 1 addition & 0 deletions docs/release-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Release Notes
:maxdepth: 2
:titlesonly:

release-notes-1.0.2.rst
release-notes-1.0.0.rst
release-notes-0.8.4.rst
release-notes-0.8.3.rst
Expand Down
2 changes: 1 addition & 1 deletion pyeapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
__version__ = '1.0.0'
__version__ = '1.0.2'
__author__ = 'Arista EOS+'


Expand Down
16 changes: 12 additions & 4 deletions pyeapi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,18 @@ class CliVariants:
"""
@staticmethod
def expand( cmds ):
"""cmds is a list of str and CliVariants, this method returns a list
of all full variant combinations present in cmds, e.g.:
expand( 'x', CliVariants( 'a', 'b'), 'y' )
will return: [ ['x', 'a', 'y'], ['x', 'b', 'y'] ]
""" Expands cmds argument into a list of all CLI variants

The method returns a list of all full variant combinations present
in the the cmds arguement

Args:
cmds (list): a list made of str and CliVariants types

Returns:
expanded list, e.g.:
expand( 'x', CliVariants( 'a', 'b'), 'y' )
will return: [ ['x', 'a', 'y'], ['x', 'b', 'y'] ]
"""
assert isinstance(cmds, list), 'argument cmds must be list type'
if not cmds:
Expand Down