anchor.diff:  %% under the License.
   %%
   
  -
   -module(chef_wm_base).
   
   %% Complete webmachine callbacks
  
positive.code:         Guid -> Guid
      end.
  
  maybe_add_org_specific(?OSC_ORG_NAME, _Darklaunch, Items) ->
      Items;
  maybe_add_org_specific(OrgName, Darklaunch, Items) ->
      %% Generate the darklaunch header in a form that won't break log parsing
      DLData = chef_wm_darklaunch:get_proplist(Darklaunch),
      [{org_name, OrgName} | DLData] ++ Items.
  
  %% If request results in a rename, then set Location header and wm will return with a 201.
  %% Currently, only the clients endpoint supports rename
  
negative.code:             ok
      end.
  
  %% @doc Helper function to annotate requests for logging
  add_notes([], Req) ->
      Req;
  add_notes([{Key, Value} | Rest], Req) ->
      add_notes(Rest, wrq:add_note(Key, Value, Req)).
  
  fetch_org_guid(#base_state{organization_guid = Id}) when is_binary(Id) ->
      Id;
  