
from solumclient.builder.v1 import image
from solumclient.openstack.common.apiclient import client


class Client(client.BaseClient):
    """Client for the Solum v1 API."""

    def __init__(self, http_client, extensions=None):
        """Initialize a new client for the Builder v1 API."""
        super(Client, self).__init__(http_client, extensions)
        self.images = image.ImageManager(self)


from solumclient.builder.v1 import image
from solumclient.openstack.common.apiclient import client


class Client(client.BaseClient):
    """Client for the Solum v1 API."""

    service_type = "image_builder"

    def __init__(self, http_client, extensions=None):
        """Initialize a new client for the Builder v1 API."""
        super(Client, self).__init__(http_client, extensions)
        self.images = image.ImageManager(self)

Set the service_type for the builder
Set the service_type for the builder

If we don't do this we can't lookup the endpoint.

Change-Id: I7eae87afc9e4d9ef9dd4f5877b71a4ebe299df0a

  
  from solumclient.builder.v1 import image
  from solumclient.openstack.common.apiclient import client
  
  
  class Client(client.BaseClient):
      """Client for the Solum v1 API."""
  
+     service_type = "image_builder"
+ 
      def __init__(self, http_client, extensions=None):
          """Initialize a new client for the Builder v1 API."""
          super(Client, self).__init__(http_client, extensions)
          self.images = image.ImageManager(self)
  
Set the service_type for the builder
## Code Before:

from solumclient.builder.v1 import image
from solumclient.openstack.common.apiclient import client


class Client(client.BaseClient):
    """Client for the Solum v1 API."""

    def __init__(self, http_client, extensions=None):
        """Initialize a new client for the Builder v1 API."""
        super(Client, self).__init__(http_client, extensions)
        self.images = image.ImageManager(self)

## Instruction:
Set the service_type for the builder
## Code After:

from solumclient.builder.v1 import image
from solumclient.openstack.common.apiclient import client


class Client(client.BaseClient):
    """Client for the Solum v1 API."""

    service_type = "image_builder"

    def __init__(self, http_client, extensions=None):
        """Initialize a new client for the Builder v1 API."""
        super(Client, self).__init__(http_client, extensions)
        self.images = image.ImageManager(self)
