search for: elsif

Displaying 20 results from an estimated 555 matches for "elsif".

Did you mean: elif
2009 Jul 28
0
[PATCH 3/5] Storage views patched for glusterfs drop down as one the Storage Pools
...t; %> + <!--[eoform:storage_pool]--> diff --git a/src/app/views/storage/_list.rhtml b/src/app/views/storage/_list.rhtml index ccb0dbe..32e905a 100644 --- a/src/app/views/storage/_list.rhtml +++ b/src/app/views/storage/_list.rhtml @@ -11,6 +11,8 @@ <th>target</th> <%elsif type == StoragePool::NFS -%> <th>export path</th> +<%elsif type == StoragePool::GLUSTERFS -%> + <th>export path</th> <% end -%> <th class="empty"></th> </tr> @@ -28,6 +30,8 @@ <td><%= storage_pool[:target] %>...
2009 Jul 09
0
[PATCH 3/5 ovirt-server] Storage views patched for glusterfs drop down as one the Storage Pools
...t; %> + <!--[eoform:storage_pool]--> diff --git a/src/app/views/storage/_list.rhtml b/src/app/views/storage/_list.rhtml index ccb0dbe..32e905a 100644 --- a/src/app/views/storage/_list.rhtml +++ b/src/app/views/storage/_list.rhtml @@ -11,6 +11,8 @@ <th>target</th> <%elsif type == StoragePool::NFS -%> <th>export path</th> +<%elsif type == StoragePool::GLUSTERFS -%> + <th>export path</th> <% end -%> <th class="empty"></th> </tr> @@ -28,6 +30,8 @@ <td><%= storage_pool[:target] %>...
2006 Jul 27
4
problem with elsif
...only take the last link_to here is the code: <%= link_to "read", :action => "show", :id => message.send(''id'') %> <%= if @level == 2 link_to "edit", :action => "edit", :id => message.send(''id'') elsif @level == 3 #HERE IS THE PROBLEM, I BECOME ONLY THE LINK TO DESTROY, AND NOT BOTH. link_to "edit", :action => "edit", :id => message.send(''id'') link_to "destroy", :action => "destroy", :id => message.send('...
2005 Apr 15
2
Logwatch
...op3d|spop3d) +*OnlyService = (pop3-login|pop3d-ssl|pop3d|spop3d) *RemoveHeaders = --- /etc/log.d/scripts/services/pop3 2005-04-15 15:15:28.727123168 -0400 +++ /etc/log.d/scripts/services/pop3 2005-04-15 15:03:47.402606350 -0400 @@ -58,6 +58,8 @@ # Don't care about these... } elsif ( ($User, $Host) = ( $ThisLine =~ /^user (.*?) authenticated - (.*)$/ ) ) { $Login{$User}{$Host}++; + } elsif ( ($User, $Host) = ( $ThisLine =~ /Login: (.*?) (\[.*\])/ ) ) { + $Login{$User}{$Host}++; } elsif ( ($User,$Downloaded,$DownloadSize,$Left,$LeftSize) = ( $ThisLine =~ /^...
2006 Aug 08
3
params object nil in controller action
...y?) and (params[:startDateTime].nil? or params[:startDateTime].empty?) and (params[:endDateTime].nil? or params[:endDateTime].empty?) flash[:warning] = "Don''t try stupid things....Enter some search criteria." redirect_to :back and return elsif ((!params[:routeNum].empty? or !params[:incidentId].empty?) and (!params[:startDateTime].empty? and !params[:endDateTime].empty?) or (!params[:routeNum].empty? and !params[:incidentId].empty?)) flash[:warning] = "Specify only one search criteria Reference# or Route or Date...
2010 May 21
1
question about scripts sieves
...e "ge" :comparator "i;ascii-numeric" ["X-Spam-score"] ["100"] { fileinto "Junk.spam"; stop; } if header :value "ge" :comparator "i;ascii-numeric" ["X-Spam-score"] ["10"] { fileinto "Junk"; } elsif anyof ( header :contains "Received" [ "[4.63.221.224", "[24.244.141.112", "[61.171.253.177", "[63.123.149.", "[63.209.206.", "(63.233.30.73", "[63.251.200.",...
2006 Jan 31
11
ez_where plugin updated features.
Friends- I wanted to let people know that there is a new experimental release of this plugin. I would love feedback on syntax and features. There is now a full test suite with fixtures that covers all the available syntax. Look at the test suite for more syntax possibilities. There have been many additions since my last release. Fabien Atelier has been working on this with me and has
2019 Jul 01
0
[PATCH 1/6] p2v: move kernel config to perl script
...ents); + } + } + + # Now generate this struct. + print $fh "struct $name {\n"; + foreach my $field (@$fields) { + my $type = ref($field); + if ($type eq 'ConfigSection') { + printf $fh " struct %s_config %s;\n", $field->name, $field->name; + } elsif ($type eq 'ConfigString') { + printf $fh " char *%s;\n", $field->name; + } elsif ($type eq 'ConfigInt') { + printf $fh " int %s;\n", $field->name; + } elsif ($type eq 'ConfigBool') { + printf $fh " bool %s;\n", $fie...
2023 Apr 04
5
[RFC PATCH 0/5] fstests specific MAINTAINERS file
I think I might be mad to include that many mailing lists in this patchset... As I explained in [PATCH 1/5], fstests covers more and more fs testing thing, so we always get help from fs specific mailing list, due to they learn about their features and bugs more. Besides that, some folks help to review patches (relevant with them) more often. So I'd like to bring in the similar way of
2011 Jul 20
2
[PATCH 1/1] Modify --param support to include additional option
...ertions(+), 4 deletions(-) diff --git a/klcc/klcc.in b/klcc/klcc.in index 711a832..5d00bfd 100644 --- a/klcc/klcc.in +++ b/klcc/klcc.in @@ -159,10 +159,17 @@ while ( defined($a = shift(@ARGV)) ) { # gcc options, that force preprocessing mode push(@ccopt, $a); $operation = 'E'; - } elsif ( $a eq '--param' ) { - push(@ccopt, $a); - push(@ccopt, shift(@ARGV)); - } elsif ( $a =~ /^-[gp]/ || $a eq '-p' ) { + } elsif ( $a =~ /(--param)[=]?/ ) { + # support --param name=value and --param=name=value + push(@ccopt, $1); + $a =~ /[=](.*)/; + my $val = $1; + if ( $a =~ /[=...
2005 Mar 02
2
[PATCH] klcc compatibility with gcc
...rn "c" if ( $file =~ /\.c$/ ); + return "obj" if ( $file =~ /\.o$/ ); return "c-header" if ( $file =~ /\.h$/ ); return "cpp-output" if ( $file =~ /\.i$/ ); return "c++-cpp-output" if ( $file =~ /\.ii$/ ); @@ -109,7 +110,7 @@ } elsif ( $a =~ /^-Wl,(.*)$/ ) { # -Wl used to pass options to the linker push(@ldopt, split(/,/, $1)); - } elsif ( $a =~ /^-([fmwWQdO]|std=|ansi|pedantic)/ ) { + } elsif ( $a =~ /^-([fmwWQdODUI]|std=|ansi|pedantic)/ ) { # Options to gcc push(@ccopt, $a); } elsif ( $a =~ /^-[gp]/ ) { @@...
2013 May 30
2
Re: libguestfs-1.22.1 compilation error
...if ($t =~ /\G([^\n]{0,$ll})($break|\n+|\z)/xmgc) { + if ($t =~ /\G((?:(?=[^\n])\X){0,$ll})($break|\n+|\z)/xmgc) { $r .= $unexpand ? unexpand($nl . $lead . $1) : $nl . $lead . $1; $remainder = $2; - } elsif ($huge eq 'wrap' && $t =~ /\G([^\n]{$ll})/gc) { + } elsif ($huge eq 'wrap' && $t =~ /\G((?:(?!=[^\n])\X){$ll})/gc) { $r .= $unexpand ? unexpand($nl . $lead . $1) : $nl . $lead . $1;...
2010 Sep 16
0
sieve rules quiestion (deduplicate e-mails)
...TO ALL - i'm recieve email 3 times :) How can i'm eliminate this duplications? For example i want to recive all emails, but put only one in subscription folder. And other silently discard.... And second question is - i have many subsections to mailing lists, sieve rules looks like this: elsif header :contains "List-Id" ["cfe-dev.cs.uiuc.edu"] { fileinto "Subscriptions/Clang"; } elsif header :contains "List-Id" ["jabberd2-lists.xiaoka.com"] { fileinto "Subscriptions/Jabberd2"; } elsif header :contains "List-Id"...
2015 Nov 19
3
[PATCH] Refactor checksize.pl
...ed based on filename: + - 440 bytes for mbr and gptmbr; + - 432 bytes for isohdp; + - 439 bytes for altmbr. +END_USAGE + die $usage; +} if (!defined($maxsize)) { # Defaults based on the filename if ($file =~ /^mbr[^0-9a-z]/) { - $maxsize = $padsize = 440; + $maxsize = 440; } elsif ($file =~ /^gptmbr[^0-9a-z]/) { - $maxsize = $padsize = 440; + $maxsize = 440; } elsif ($file =~ /^isohdp[fp]x[^0-9a-z]/) { - $maxsize = $padsize = 432; + $maxsize = 432; } elsif ($file =~ /^altmbr[^0-9a-z]/) { - $maxsize = $padsize = 439; + $maxsize = 439; } else { die "$0: n...
2007 Sep 29
1
templates with same name before extension are cached
...l request first, followed by html, here is what I see (those are just some debug statements I put in to follow the code) Request 1 "Accept: text/xml" - "starting find_template, options are :" {:action=>"index", :ext=>"rxml,xerb,builder"} - match on elsif action path is : /Users/dusty/nms/app/views/testing/index - no cache, created glob glob is : /Users/dusty/nms/app/views/testing/index.{rxml,xerb,builder} - searched Dir[glob].first and found found is : /Users/dusty/nms/app/views/testing/index.xerb - finished find_template, template is: &...
2012 Oct 23
3
Problem with sieve. dovecot 2.0.17
Since I have lots of filtering rules in thunderbird I was thinking of using sieve instead. I want to filter incoming mail into subdirectories. like "from" store at folder "old". the script is: require ["fileinto", "envelope"]; if envelope :is "from" "eliezer at test.dom" { fileinto "old"; } else { # The rest goes into
2006 Mar 16
4
calling an actionview method from inside a model
Hi, I would like my model instance to produce it''s own list of options for a form select. This is from a product model that has_many variations def alts_for_select(current_id) the_map = variations.map{|v| [v.name, v.id]} options_for_select(the_map, current_id) end the model cannot see the options_for_select method I tried to use
2013 May 30
2
libguestfs-1.22.1 compilation error
myconf ./configure \ PYTHON=/usr/bin/python2 \ --prefix=/usr --libdir=/usr/lib \ --mandir=/usr/share/man \ --sysconfdir=/etc \ --disable-probes \ --disable-gobject \ --enable-introspection=no \ --disable-lua \ --disable-erlang \ --disable-php \ --disable-haskell \ --disable-ruby \
2015 Nov 19
1
[PATCH] Refactor checksize.pl
...- 432 bytes for isohdp; > + - 439 bytes for altmbr. > +END_USAGE > + die $usage; > +} > > if (!defined($maxsize)) { > # Defaults based on the filename > if ($file =~ /^mbr[^0-9a-z]/) { > - $maxsize = $padsize = 440; > + $maxsize = 440; > } elsif ($file =~ /^gptmbr[^0-9a-z]/) { > - $maxsize = $padsize = 440; > + $maxsize = 440; > } elsif ($file =~ /^isohdp[fp]x[^0-9a-z]/) { > - $maxsize = $padsize = 432; > + $maxsize = 432; > } elsif ($file =~ /^altmbr[^0-9a-z]/) { > - $maxsize = $padsize = 439;...
2009 Jul 09
1
[PATCH 1/5 ovirt-server] Add glusterfs to task-omatic API for {task_storage,utils}
...src/task-omatic/task_storage.rb b/src/task-omatic/task_storage.rb index 77363ac..97ae4fc 100644 --- a/src/task-omatic/task_storage.rb +++ b/src/task-omatic/task_storage.rb @@ -202,6 +202,8 @@ class LibvirtPool return IscsiLibvirtPool.new(pool.ip_addr, pool[:target], pool[:port], logger) elsif pool[:type] == "NfsStoragePool" return NFSLibvirtPool.new(pool.ip_addr, pool.export_path, logger) + elsif pool[:type] == "GlusterfsStoragePool" + return GLUSTERFSLibvirtPool.new(pool.ip_addr, pool.export_path, logger) elsif pool[:type] == "LvmStoragePool...