1
0
Fork 0
mirror of https://github.com/fastogt/fastocloud_admin.git synced 2025-03-09 23:38:52 +00:00

Connect without check

This commit is contained in:
topilski 2020-02-17 03:12:17 -05:00
parent dd945b86a5
commit c21feb1de0

View file

@ -22,11 +22,7 @@ if __name__ == '__main__':
email = argv.email email = argv.email
password = argv.password password = argv.password
mongo = connect(mongodb_uri=argv.mongo_uri) connect(mongodb_uri=argv.mongo_uri)
if not mongo:
print('Failed to connect!')
sys.exit(1)
new_user = ProviderAdminUser.make_provider(email=email.lower(), password=password, country=argv.country, new_user = ProviderAdminUser.make_provider(email=email.lower(), password=password, country=argv.country,
language=argv.language) language=argv.language)
new_user.status = ProviderAdminUser.Status.ACTIVE new_user.status = ProviderAdminUser.Status.ACTIVE