Skip to content

Commit

Permalink
Imported AmbiguousParentError
Browse files Browse the repository at this point in the history
AmbiguousParentError is imported from cfgm_common.exceptions
in resource_common.py

Change-Id: I5fc4c41f384c89e39796d6da03bfcc4c9dabaa7c
Closes-Bug: 1670604
  • Loading branch information
sahilsabharwal committed Mar 20, 2017
1 parent 2be8a2a commit 31e5c1a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ifmap_frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ def _generate_common_classes(self, gen_filepath_pfx):
write(gen_file, "This module defines the classes for every configuration element managed by the system")
write(gen_file, '"""')
write(gen_file, "")
write(gen_file, "try:")
write(gen_file, " from cfgm_common.exceptions import AmbiguousParentError")
write(gen_file, "except ImportError:")
write(gen_file, " pass")
write(gen_file, "")

for ident in self._non_exclude_idents():
class_name = CamelCase(ident.getName())
Expand Down

0 comments on commit 31e5c1a

Please sign in to comment.