Skip to content

Commit

Permalink
fix: Add missing tag colors
Browse files Browse the repository at this point in the history
PR: #267
  • Loading branch information
Michael Richardson authored and shinmog committed May 6, 2021
1 parent 57c593e commit d021922
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion panos/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def _setup(self):

@staticmethod
def color_code(color_name):
"""Returns the color code for a color
"""Return the color code for a color
Args:
color_name (str): One of the following colors:
Expand Down Expand Up @@ -172,6 +172,32 @@ def color_code(color_name):
"black": 14,
"gold": 15,
"brown": 16,
"olive": 17,
# there is no color18
"maroon": 19,
"red-orange": 20,
"yellow-orange": 21,
"forest green": 22,
"turquoise blue": 23,
"azure blue": 24,
"cerulean blue": 25,
"midnight blue": 26,
"medium blue": 27,
"cobalt blue": 28,
"violet blue": 29,
"blue violet": 30,
"medium violet": 31,
"medium rose": 32,
"lavender": 33,
"orchid": 34,
"thistle": 35,
"peach": 36,
"salmon": 37,
"magenta": 38,
"red violet": 39,
"mahogany": 40,
"burnt sienna": 41,
"chestnut": 42,
}
if color_name not in colors:
raise ValueError("Color '{0}' is not valid".format(color_name))
Expand Down

0 comments on commit d021922

Please sign in to comment.