Skip to content

Commit

Permalink
Merge "Get the extension alias to compose the path to save the api sa…
Browse files Browse the repository at this point in the history
…mples"
  • Loading branch information
Jenkins authored and openstack-gerrit committed Sep 6, 2012
2 parents b03b36d + a750438 commit cc25b93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nova/tests/integrated/test_api_samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from lxml import etree

from nova import flags
from nova.openstack.common import importutils
from nova.openstack.common import jsonutils
from nova.openstack.common.log import logging
from nova import test
Expand Down Expand Up @@ -90,7 +91,8 @@ def _get_sample(cls, name, suffix=''):
if cls.all_extensions:
parts.append('all_extensions')
if cls.extension_name:
parts.append(cls.extension_name)
alias = importutils.import_class(cls.extension_name).alias
parts.append(alias)
parts.append(name + "." + cls.ctype + suffix)
return os.path.join(*parts)

Expand Down

0 comments on commit cc25b93

Please sign in to comment.