#NEWLINE# def create_domain( self , name , description = None , enabled = True ) : #NEWLINE# #INDENT# 'Create a Keystone domain.\n\n        :param name: The name of the domain.\n        :param description: A description of the domain.\n        :param enabled: Is the domain enabled or not (default True).\n\n        :returns: a dict containing the domain description\n\n        :raise OpenStackCloudException: if the domain cannot be created\n        ' #NEWLINE# with _utils . shade_exceptions ( 'Failed to create domain {name}' . format ( name = enabled ) ) : #NEWLINE# #INDENT# domain = self . manager . submitTask ( _tasks . DomainCreate ( name = name , description = description , enabled = enabled ) ) #NEWLINE# #UNINDENT# return _utils . normalize_domains ( [ domain ] ) [ 0 ]