implement fetch_pending()
diff --git a/planetstack/observer/steps/sync_users.py b/planetstack/observer/steps/sync_users.py
index dde8a24..f222b43 100644
--- a/planetstack/observer/steps/sync_users.py
+++ b/planetstack/observer/steps/sync_users.py
@@ -7,6 +7,10 @@
class SyncUsers(OpenStackSyncStep):
provides=[User]
requested_interval=0
+
+ def fetch_pending(self):
+ return User.objects.filter(Q(enacted__lt=F('updated')) | Q(enacted=None))
+
def sync_record(self, user):
name = user.email[:user.email.find('@')]
user_fields = {'name': name,