diff --git a/salt/renderers/stateconf.py b/salt/renderers/stateconf.py
index <HASH>..<HASH> 100644
--- a/salt/renderers/stateconf.py
+++ b/salt/renderers/stateconf.py
@@ -411,7 +411,8 @@ def add_goal_state(data):
         return
     else:
         reqlist = []
-        for sid, _, state, _ in statelist(data):
+        for sid, _, state, _ in \
+                statelist(data, set(['include', 'exclude', 'extend'])):
             reqlist.append({state_name(state): sid})
         data[goal_sid] = {'state.config': [dict(require=reqlist)]}
Fix a bug in goal generation that forgot to ignore the 'extend' special sid.