~juju-qa/ubuntu/xenial/juju/2.0-rc2

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/state/action.go

  • Committer: Nicholas Skaggs
  • Date: 2016-09-30 14:39:30 UTC
  • mfrom: (1.8.1)
  • Revision ID: nicholas.skaggs@canonical.com-20160930143930-vwwhrefh6ftckccy
import upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
192
192
                        Assert: bson.D{{"status", ActionPending}},
193
193
                        Update: bson.D{{"$set", bson.D{
194
194
                                {"status", ActionRunning},
195
 
                                {"started", nowToTheSecond()},
 
195
                                {"started", a.st.NowToTheSecond()},
196
196
                        }}},
197
197
                }})
198
198
        if err != nil {
225
225
                                {"status", finalStatus},
226
226
                                {"message", message},
227
227
                                {"results", results},
228
 
                                {"completed", nowToTheSecond()},
 
228
                                {"completed", a.st.NowToTheSecond()},
229
229
                        }}},
230
230
                }, {
231
231
                        C:      actionNotificationsC,
261
261
                        Receiver:   receiverTag.Id(),
262
262
                        Name:       actionName,
263
263
                        Parameters: parameters,
264
 
                        Enqueued:   nowToTheSecond(),
 
264
                        Enqueued:   st.NowToTheSecond(),
265
265
                        Status:     ActionPending,
266
266
                }, actionNotificationDoc{
267
267
                        DocId:     st.docID(prefix + actionId.String()),