from fabric.api import env


class RootUser(object):
    """
    Class to define Root user.
    """
    uid=0

    @classmethod
    def sudo_identity(cls):
        return None


class DeployUser(object):
    """
    Class to define Deploy User.
    """

    @classmethod
    def sudo_identity(cls):
        return env.deploy_user

from fabric.api import env


class UserBase(object):
    pass


class RootUser(UserBase):
    """
    Class to define Root user.
    """
    uid=0

    @classmethod
    def sudo_identity(cls):
        return None


class DeployUser(UserBase):
    """
    Class to define Deploy User.
    """

    @classmethod
    def sudo_identity(cls):
        return env.deploy_user

Fix issue running database creation, should be run as the deployment user
Fix issue running database creation, should be run as the deployment user

  from fabric.api import env
  
  
- class RootUser(object):
+ class UserBase(object):
+     pass
+ 
+ 
+ class RootUser(UserBase):
      """
      Class to define Root user.
      """
      uid=0
  
      @classmethod
      def sudo_identity(cls):
          return None
  
  
- class DeployUser(object):
+ class DeployUser(UserBase):
      """
      Class to define Deploy User.
      """
  
      @classmethod
      def sudo_identity(cls):
          return env.deploy_user
  
Fix issue running database creation, should be run as the deployment user
## Code Before:
from fabric.api import env


class RootUser(object):
    """
    Class to define Root user.
    """
    uid=0

    @classmethod
    def sudo_identity(cls):
        return None


class DeployUser(object):
    """
    Class to define Deploy User.
    """

    @classmethod
    def sudo_identity(cls):
        return env.deploy_user

## Instruction:
Fix issue running database creation, should be run as the deployment user
## Code After:
from fabric.api import env


class UserBase(object):
    pass


class RootUser(UserBase):
    """
    Class to define Root user.
    """
    uid=0

    @classmethod
    def sudo_identity(cls):
        return None


class DeployUser(UserBase):
    """
    Class to define Deploy User.
    """

    @classmethod
    def sudo_identity(cls):
        return env.deploy_user
