The network tags were absent from an if check used to actually list
tags. The patch fixes the oversight, and adds a proper error message in
case the issue occurs again for a new tag type.
Signed-off-by: Hrvoje Ribicic <riba@google.com>
Reviewed-by: Michele Tartara <mtartara@google.com>
if kind in (constants.TAG_INSTANCE,
constants.TAG_NODEGROUP,
- constants.TAG_NODE):
+ constants.TAG_NODE,
+ constants.TAG_NETWORK):
if not self.name:
raise http.HttpBadRequest("Missing name on tag request")
ssc = ssconf.SimpleStore()
tags = ssc.GetClusterTags()
+ else:
+ raise http.HttpBadRequest("Unhandled tag type!")
+
return list(tags)
def GetPutOpInput(self):