Use 'text' instead of pymongo.TEXT
Change-Id: I6b6ee5b6a80759d127b9ee5b69549ffc616730ba
This commit is contained in:
parent
b5418f6e38
commit
ab6207399e
@ -12,8 +12,6 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import pymongo
|
||||
|
||||
from surveil.api.handlers import handler
|
||||
|
||||
|
||||
@ -32,9 +30,9 @@ class StatusHandler(handler.Handler):
|
||||
pass
|
||||
|
||||
self.request.mongo_connection.alignak_live.hosts.ensure_index(
|
||||
[("$**", pymongo.TEXT)]
|
||||
[("$**", 'text')]
|
||||
)
|
||||
|
||||
self.request.mongo_connection.alignak_live.services.ensure_index(
|
||||
[("$**", pymongo.TEXT)]
|
||||
[("$**", 'text')]
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user