search for: case_sensitive

Displaying 20 results from an estimated 80 matches for "case_sensitive".

2018 Jul 25
1
[PATCH] v2v: rhv plugin - case-sensitive search queries
...8 100644 --- a/v2v/rhv-upload-plugin.py +++ b/v2v/rhv-upload-plugin.py @@ -71,7 +71,7 @@ def find_host(connection): storage_name = params['output_storage'] data_centers = system_service.data_centers_service().list( search='storage.name=%s' % storage_name, - case_sensitive=False, + case_sensitive=True, ) if len(data_centers) == 0: # The storage domain is not attached to a datacenter @@ -84,7 +84,7 @@ def find_host(connection): hosts_service = system_service.hosts_service() hosts = hosts_service.list( search="hw_id=%s...
2017 Jan 20
2
SSSD cache case-sensitivity
Dear all, I'm running CentOS 7.3 with SSSD. I'm using sssd-ad to talk to an AD backend. Group names in the AD contain capitals. When sssd-ad is working normally, group names returned are all lowercase. However, when the AD backend goes offline, group names returned from the SSSD cache contain capitals. The change in case breaks stuff (sshd's AllowGroups, for one). Has anybody
2006 May 14
0
:case_sensitive => false not working with postgresql
...ttp://dev.rubyonrails.org/changeset/4207) should fix the bug. I''m running rails 1.1.2. I can''t figure out if this is part of my version of rails, or if I''d have to move to edge to get the functionality. My code simply looks like this: validates_uniqueness_of :login, :case_sensitive => false However, entering login variants such as "test", "Test", "tEST" creates these logins without complaint. Not exactly what I want. Is there a way to attach the condition sql manually? Thanks! Ben
2010 Nov 02
2
Why can I do a case insensitive Validation but not Find?
Why can I do this.... validates_uniqueness_of "username", :case_sensitive=>false .... but not this.... User.where "Xx", :case_sensitive=>false ? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@p...
2018 Jul 05
4
[PATCH] v2v: rhv plugin - find suitable host
...e) return None - debug("hw_id = %r" % vdsm_id) + system_service = connection.system_service() + storage_name = params['output_storage'] + data_centers = system_service.data_centers_service().list( + search='storage=%s' % storage_name, + case_sensitive=False, + ) + if len(data_centers) == 0: + # The storage domain is not attached to a datacenter + # (shouldn't happen, would fail on disk creation). + return None + + datacenter = data_centers[0] + debug("hw_id = %r, datacenter = %s" % (vdsm_id, datacen...
2012 Dec 04
2
[Rails 3.2] validation on create not working
class Place < ActiveRecord::Base validates :description, :presence => true validates :description, :uniqueness => {:case_sensitive => true, :on => :create } # also tried # validates :description, :uniqueness => {:case_sensitive => true }, :on => :create On update ( in form fields, updated label, same description ) params {"event"=>{"place_attributes"=>{"label"=>&...
2019 Apr 15
1
[PATCH] v2v: -o rhv-upload: check whether the cluster exists
...th name ‘%s’, id ‘%s’" % (params['output_name'], vm.id)) +# Check whether the specified cluster exists. +clusters_service = system_service.clusters_service() +clusters = clusters_service.list( + search='name=%s' % params['rhv_cluster'], + case_sensitive=True, +) +if len(clusters) == 0: + raise RuntimeError("The cluster ‘%s’ does not exist" % + (params['rhv_cluster'])) + # Otherwise everything is OK, exit with no error. diff --git a/v2v/test-v2v-o-rhv-upload-module/ovirtsdk4/__init__.py b/v2v/test-v2v-o-r...
2017 Jan 20
2
SSSD cache case-sensitivity
Hi John, Thanks for pointing me to case_sensitive, that indeed is the cause: the default for "case_sensitive" is "True", but for the AD provider "True" is invalid(??), so it defaults to "False"(???)! Good news is that with both "case_sensitive = False" and "case_sensitive = Preserving"...
2018 Jul 05
2
[PATCH v2] v2v: rhv plugin - find suitable host
...id) - hosts_service = connection.system_service().hosts_service() + system_service = connection.system_service() + storage_name = params['output_storage'] + data_centers = system_service.data_centers_service().list( + search='storage=%s' % storage_name, + case_sensitive=False, + ) + if len(data_centers) == 0: + # The storage domain is not attached to a datacenter + # (shouldn't happen, would fail on disk creation). + debug("storange domain (%s) is not attached to a DC" % storage_name) + return None + + datacenter...
2012 Jun 06
3
how to do a Model.order(:name) using a :case_sensitive => false ?
this option is available in validation.. is there any equivalent when doing a query or should it be SQL dependent ( coded in the model ) ? thanks for feedback -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe
2012 Oct 02
3
case insensitive inclusion validation
I want to add case_sensitive option to inclusion validation. This will allow to do: validates :numbers, :inclusion => { :in => %(One Two), :case_sensitive => false } Does it make a sense? Thanks. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group....
2004 Mar 24
0
short preserve case
..._mv(3723) reply_mv : \New Folder -> \CACA [2004/03/24 15:51:52, 3] lib/util.c:unix_clean_name(580) unix_clean_name [/New Folder] [2004/03/24 15:51:52, 3] lib/util.c:unix_clean_name(580) unix_clean_name [/CACA] [2004/03/24 15:51:52, 3] smbd/reply.c:rename_internals(3515) rename_internals: case_sensitive = 0, case_preserve = 1, short case preserve = 0, directory = ./New Folder, newname = ./caca, newname_last_component = caca, is_8_3 = 0 [2004/03/24 15:51:52, 3] smbd/reply.c:rename_internals(3609) rename_internals: succeeded doing rename on ./New Folder -> ./caca and this failed....one direct...
2018 Jul 24
3
[PATCH] v2v: rhv plugin - fix DC search string
...connection): system_service = connection.system_service() storage_name = params['output_storage'] data_centers = system_service.data_centers_service().list( - search='storage=%s' % storage_name, + search='storage.name=%s' % storage_name, case_sensitive=False, ) if len(data_centers) == 0: -- 2.17.1
2009 Mar 23
5
Rspec weird behaviour
...am pretty new to the framework and still learning. I am getting weird errors on an ActiveRecord model test, here is the basic class model definition: class Size < ActiveRecord::Base has_many :quantities, :dependent => :destroy validates_presence_of :name validates_uniqueness_of :name, :case_sensitive => false end and this is the faulty spec: it ''new size should have an error on name'' do Size.new.should have(1).error_on(:name) end the red response is: ''new size should have an error on name'' FAILED expected 1 error on :name, got 0 if I change th...
2019 Sep 19
2
[PATCH] v2v: -o rhv-upload: adapt phony ovirtsdk4 module to recent changes
...(self): return SystemService() @@ -60,26 +64,31 @@ class SystemService(object): def vms_service(self): return VmsService() +class ClusterService(object): + def get(self): + return types.Cluster() + class ClustersService(object): - def list(self, search=None, case_sensitive=False): - return ["Default"] + def cluster_service(self, id): + return ClusterService() class DataCentersService(object): def list(self, search=None, case_sensitive=False): - return [] + return [types.DataCenter()] class DiskService(object):...
2010 Nov 28
2
Dynamic find_by method returning nil in a class method
...} validates :last_name, :presence => true, :length => {:maximum => 50 } validates :email, :presence => true, :format => { :with => email_regex }, :uniqueness => { :case_sensitive => false } validates :password, :presence => true, :length => {:within => 6..20}, :confirmation => true validates :sex, :presence => true validates :birth_date, :presence => true def...
2002 Feb 25
3
PATCH: Samba/Win2K renaming bug
...} + } has_wild = ms_has_wild(mask); + DEBUG(3, ("rename_internals: has_wild %d\n", has_wild)); + if (!has_wild) { pstring zdirectory; pstring znewname; @@ -3710,10 +3734,16 @@ pstrcpy(newname, tmpstr); } - DEBUG(3,("rename_internals: case_sensitive = %d, case_preserve = %d, short case preserve = %d, \ -directory = %s, newname = %s, newname_last_component = %s, is_8_3 = %d\n", - case_sensitive, case_preserve, short_case_preserve, directory, - newname, newname_last_component, is_short_name)); + DEBUG(3, +...
2018 Jul 05
0
Re: [PATCH] v2v: rhv plugin - find suitable host
...- debug("hw_id = %r" % vdsm_id) > + system_service = connection.system_service() > + storage_name = params['output_storage'] > + data_centers = system_service.data_centers_service().list( > + search='storage=%s' % storage_name, > + case_sensitive=False, > + ) > + if len(data_centers) == 0: > + # The storage domain is not attached to a datacenter > + # (shouldn't happen, would fail on disk creation). > + return None > + > + datacenter = data_centers[0] > + debug("hw_id = %r, d...
2018 Jul 05
0
Re: [PATCH] v2v: rhv plugin - find suitable host
...vdsm_id) > I would leave this as is... > + system_service = connection.system_service() > + storage_name = params['output_storage'] > + data_centers = system_service.data_centers_service().list( > + search='storage=%s' % storage_name, > + case_sensitive=False, > + ) > + if len(data_centers) == 0: > + # The storage domain is not attached to a datacenter > + # (shouldn't happen, would fail on disk creation). > A debug message here would be helpful. > + return None > + > + datacenter = data...
2018 Jul 05
0
Re: [PATCH v2] v2v: rhv plugin - find suitable host
...= connection.system_service().hosts_service() > + system_service = connection.system_service() > + storage_name = params['output_storage'] > + data_centers = system_service.data_centers_service().list( > + search='storage=%s' % storage_name, > + case_sensitive=False, > + ) > + if len(data_centers) == 0: > + # The storage domain is not attached to a datacenter > + # (shouldn't happen, would fail on disk creation). > + debug("storange domain (%s) is not attached to a DC" % > storage_name) > +...