Skip to content

Commit

Permalink
Update showoci_service.py
Browse files Browse the repository at this point in the history
Add line to initialize data in the class ShowOCIService.  This does not have any affect on running showoci from the command line.  However this does reset data{} to empty when importing the showoci classes and running from a wrapper package.
  • Loading branch information
stevario committed Sep 23, 2022
1 parent cd18723 commit 4b5f6f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/showoci/showoci_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,9 @@ class ShowOCIService(object):
##########################################################################
def __init__(self, flags):

# Initiate data everytime class is instantiated
self.data = {}

if not isinstance(flags, ShowOCIFlags):
raise TypeError("flags must be ShowOCIFlags class")

Expand Down

0 comments on commit 4b5f6f4

Please sign in to comment.