# -*- encoding:utf8 -*-
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

# -*- encoding:utf8 -*-
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

--- 
+++ 
@@ -2,7 +2,11 @@
 from fabric.api import env
 
 
-class RootUser(object):
+class UserBase(object):
+    pass
+
+
+class RootUser(UserBase):
     """
     Class to define Root user.
     """
@@ -13,7 +17,7 @@
         return None
 
 
-class DeployUser(object):
+class DeployUser(UserBase):
     """
     Class to define Deploy User.
     """
Fix issue running database creation, should be run as the deployment user
